how to render my htmlstring from java class in velocity template?

Ads
 

how to render my htmlstring from java class in velocity template?

Hi,

I have a java class generates html string dynamically based on the logic. I'm sending that string to vm as a context veriable. But I'm unable to draw html from that htmlstring. Could you please help me to do this with sample code? At least let me know whether it is possible or not? Thanks a billion in advance!

Ref: I read your article "Use Velocity to generate HTML document".

-Chintu

View Answers

Ads









Related Tutorials/Questions & Answers:
how to render my htmlstring from java class in velocity template?
Version of com.bladejava>blade-render-velocity dependency
Advertisements
Formatting numbers in Velocity Templates?
Formatting numbers in Velocity Templates?
how to display output on jsp from while loop of action class....actually i am retreiving the post from posts column from my sql.plz help.thnkss
Maven Dependency blade-render-velocity >> 1.0.1
Maven Dependency blade-render-velocity >> 1.0.4
How to pass variable from one class to another in java
how to send my system.out.println in a class file to a jsp in Struts2
How to invoke other java class by selecting from dropdown menu and subsequently clicking button in java swing application
How to invoke other java class by selecting from dropdown menu and subsequently clicking button in java swing application
How to invoke other java class by selecting from dropdown menu and subsequently clicking button in java swing application
how to pass variable from simple java main class(not servlet) to the jsp page?
How to create a class in java
how to send sms from my website to mobile of particular user.
How save,get picture from database in my jsp page?
how to use StringTokenizer to retrieve the class name, attributes name and methods name from the Java Source Code
Velocity
My Base Class is Changing every time in my code. How I can overcome this?
How to launch my web application from my desktop without opening Netbeans IDE everytime i run the application?
how do i make a phone call from my app without quitting my application
how to pass a string from one class to another
How to call business deleget class(EJB) from JSF Page? - Java Server Faces Questions
How can i pass the valus from a JSP to the action class???
Average Age of my Class?
How to call the run method from another class?
how can i simplify my java code
Calling java class method from javascript
how to get session object in simple java class??
get the value from another class - Java Beginners
how to include a java class in jsp - JSP-Servlet

Ads