[jdom-interest] forwarding JDOM-Objects

Paul Libbrecht paul at activemath.org
Mon Jan 9 01:50:31 PST 2006

If you have a jdom object, I'd try to keep it... at least if performance 
matters a bit. Also note that servlet parameters tend to be limited in 
Why not make the jdom object into a thread-local ?
You might have difficulty with sharing static-members if the servlets 
are from different webapps...


Christian Stalp wrote:
> Hello out there,
> I have a special problem. I wrote this allready into the tomcat user 
> list, but maybe somone here has a good solution for my problem.
> I want to forward a JDOM-object from one servlet to another in the 
> same servlet-container. I thought I write this JDOM to a string, 
> transfer it and unpack it at the other side.
> BUT I cannot find a way to extract a JDOM from a String delivered by a 
> HttpServletRequest.
> I tried it this way:
> String mystring = req.getParameter("Objekt");
>       Document mydoc = mystring.?  <- no method found
> I thought there was a method anyway. What can I do here?
> Thank you and...
> Gruss Christian
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com

More information about the jdom-interest mailing list