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

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









Related Tutorials/Questions & Answers:
how to render my htmlstring from java class in velocity template?
Maven dependency for com.bladejava - blade-render-velocity version 1.0.4 is released. Learn to use blade-render-velocity version 1.0.4 in Maven based Java projects
Advertisements
Maven dependency for com.bladejava - blade-render-velocity version 1.0.1 is released. Learn to use blade-render-velocity version 1.0.1 in Maven based Java projects
Version of com.bladejava>blade-render-velocity dependency
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 Repository/Dependency: com.bladejava | blade-render-velocity
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
ModuleNotFoundError: No module named 'templater'
how to send my system.out.println in a class file to a jsp in Struts2
Average Age of my Class?
how to pass a string from one class to another
My Base Class is Changing every time in my code. How I can overcome this?
ModuleNotFoundError: No module named 'odt_templater'
ModuleNotFoundError: No module named 'vac-templater'
ModuleNotFoundError: No module named 'vac-templater'
ModuleNotFoundError: No module named 'vac-templater'
ModuleNotFoundError: No module named 'workflow-templater'
ModuleNotFoundError: No module named 'workflow-templater'
ModuleNotFoundError: No module named 'config-templater'
ModuleNotFoundError: No module named 'knights-templater'
How to call the run method from another class?
how to pass variable from simple java main class(not servlet) to the jsp page?
Velocity
how to use StringTokenizer to retrieve the class name, attributes name and methods name from the Java Source Code
Calling java class method from javascript
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 send sms from my website to mobile of particular user.
How save,get picture from database in my jsp page?
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???
ModuleNotFoundError: No module named 'python-pptx-templater'
ModuleNotFoundError: No module named 'python-pptx-templater'
ModuleNotFoundError: No module named 'aws-autodiscovery-templater'
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
Calculate an average Age of my Class?
get the value from another class - Java Beginners
How to create a class in java
ModuleNotFoundError: No module named 'templated_docs'
ModuleNotFoundError: No module named 'templated-emails'
ModuleNotFoundError: No module named 'templated-mail'
ModuleNotFoundError: No module named 'templated-yaml'
ModuleNotFoundError: No module named 'templated-emails'
ModuleNotFoundError: No module named 'templated-yaml'

Ads