Is it possible to (or how would you) attach a JDOM object (if possible)
as an application attribute in a servlet and then forward to a jsp page
to process it?
 
Currently I'm doing the opposite, I'm starting with a jsp page and then
doing an import which is calling a servlet that's outputting text/xml.
I'm then x:parse'ng that and using xslt from there.  But I want to start
controlling things from the servlet side instead, and pushing the output
(JDOM currently) to the jsp page(s).
 
I don't seem to be finding an answer to this in all of the stuff I've
read.
 
BTW, I've gone the route of using java code in the jsp page using
scripting elements (<%...%>), but I was doing the looping and formatting
that way as well and it was REALLY ugly.  But, if I had to use a hybrid
approach, I will (i.e. using scripting to convert the Element to a
string for parsing with x:parse or something like that).
 
Anyway, hopefully I made some sense.  Any help would be much
appreciated.
 
Thanks,
Chris

Reply via email to