I have a need to execute a jsp and get the resulting HTML in a method. I figured out a way to do it if it the jsp is stored as a file in the hard drive. But I am looking for a way to execute a jsp which is actually dynamically generated and stored in a string.
Is this even possible?
I looked at the jasper classes and everything seems to be based on file.
Any info will be greatly appreciated
-
Executing JSPS in code (3 messages)
- Posted by: J B
- Posted on: April 14 2003 18:34 EDT
Threaded Messages (3)
- Executing JSPS in code by Trevor S on April 14 2003 19:37 EDT
- Executing JSPS in code by Race Condition on April 16 2003 15:25 EDT
- Executing JSPS in code by Eugene Bloss on April 16 2003 00:12 EDT
-
Executing JSPS in code[ Go to top ]
- Posted by: Trevor S
- Posted on: April 14 2003 19:37 EDT
- in response to J B
You could make an http call to the jsp's url and convert the stream to a string. -
Executing JSPS in code[ Go to top ]
- Posted by: Race Condition
- Posted on: April 16 2003 15:25 EDT
- in response to Trevor S
true. -
Executing JSPS in code[ Go to top ]
- Posted by: Eugene Bloss
- Posted on: April 16 2003 00:12 EDT
- in response to J B
See for example Eval taglib from Coldtags suite:
www.servletsuite.com/jsp.htm