I would be using struts.
Would it be possible to create this stream/file while in the same web container then display it?
I have two routes, I can have my servelts read it as a jsp, or convert it to html manually (populate the object that my custom tags expect to generate the xml).
The problem I see with writing as a JSP is a possible threading issue.
Originally posted by William Brogden:
Another alternative would be to write the code for the dynamic page in a scripting language such as Jython or Groovy.
Your custom tags would have to be re-implemented of course.
Just curious, why would this be a good idea in comparison to what Bear suggested? I am still trying to see the benefit of scripting languages meshed with Java.
Just curious, why would this be a good idea in comparison to what Bear suggested?
What bothers me about writing a new JSP file every time a request is processed is that you end up with all these .jsp and .class files cluttering up the disk, and loaded class files cluttering up memory.
Seems to me you end up with a housekeeping problem.
I am still trying to see the benefit of scripting languages meshed with Java.
Me too so far I have not found many but so many folks are enthusiastic about scripting languages I feel I should make an effort!
Would it be possible to use a custom ClassLoader? This is one area where I really have no expertise.
I'd like to avoid this but I don't know another way that I could render a jsp file from a String. Thats the main goal.. I get a String that is an entire jsp file (with custom tags) from an object and I need to render it.. in the same container.