Re: forwarding JDOM-Objects

2006-01-13 Thread Christian Stalp
So I wrote this servlet, it gets a JDOM-object from another servlet and returns with a another attribute. Document mydoc = (Document) this.getServletContext().getAttribute(jdom_object); TXMLObject tobj = TXMLObject.newInstance ( mydoc); ServletContext sercon =

Re: forwarding JDOM-Objects

2006-01-13 Thread David Delbecq
Your class in not available for your servlet. Check in you war that com/softwareag/tamino/db/api/accessor/TInsertException is either in WEB-INF/classes, either in a .jar in WEB-INF/lib Le Vendredi 13 Janvier 2006 15:44, Christian Stalp a écrit : So I wrote this servlet, it gets a JDOM-object

Re: forwarding JDOM-Objects

2006-01-13 Thread Christian Stalp
David Delbecq schrieb: Your class in not available for your servlet. Check in you war that com/softwareag/tamino/db/api/accessor/TInsertException is either in WEB-INF/classes, either in a .jar in WEB-INF/lib Mercy, this was really the problem. After I copied all .jar-files I need into

Re: forwarding JDOM-Objects

2006-01-09 Thread Christian Stalp
Hello again, sorry for my late answer to this thread. I desided to forward the JDOM-Object via tge servelt-context. This solution wrote me Frode Halvorsen of the jdom-interest mailling list. He wrote: Hello. Why don't you put it as an attribute to the servletcontext. Since both revlets runs

Re: forwarding JDOM-Objects

2006-01-09 Thread Sriram Narayanan
On 1/9/06, Christian Stalp [EMAIL PROTECTED] wrote: Hello again, sorry for my late answer to this thread. I desided to forward the JDOM-Object via tge servelt-context. This solution wrote me Frode Halvorsen of the jdom-interest mailling list. He wrote: Hello. Why don't you put it as an

forwarding JDOM-Objects

2006-01-06 Thread Christian Stalp
Hello again, now I have another question. 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

RE: forwarding JDOM-Objects

2006-01-06 Thread Duan, Nick
9:21 AM To: Tomcat Users List Subject: forwarding JDOM-Objects Hello again, now I have another question. 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

Re: forwarding JDOM-Objects

2006-01-06 Thread Christian Stalp
Duan, Nick wrote: You shouldn't use req.getParameter(..). Instead, use the setAttribute and getAttribute methods in HttpServletRequest. No need to pack/unpack JDOM. You can pass an object via request. So... String mystring = req.getAttribute(Object) Document mydoc = mystring.?

RE: forwarding JDOM-Objects

2006-01-06 Thread Duan, Nick
Don't forget type casting the object. ND -Original Message- From: Christian Stalp [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 10:06 AM To: Tomcat Users List Subject: Re: forwarding JDOM-Objects Duan, Nick wrote: You shouldn't use req.getParameter(..). Instead, use

Re: forwarding JDOM-Objects

2006-01-06 Thread Christian Stalp
Duan, Nick schrieb: Don't forget type casting the object. String mystring = req.getAttribute(Object).toString(); Document mydoc = mystring.? Casting from String to JDOM doesn't work!!! So which way you prefer? Thank you... Gruss Christian

Re: forwarding JDOM-Objects

2006-01-06 Thread Len Popp
On 1/6/06, Christian Stalp [EMAIL PROTECTED] wrote: Duan, Nick schrieb: Don't forget type casting the object. String mystring = req.getAttribute(Object).toString(); Document mydoc = mystring.? Casting from String to JDOM doesn't work!!! So which way you prefer? Thank you...

Re: forwarding JDOM-Objects

2006-01-06 Thread Christian Stalp
Len Popp schrieb: What type of object is the Object attribute supposed to be? If you have a Document, you can do req.setAttribute(Object, mydoc); in one servlet and Document mydoc = req.getAttribute(Object); in the other. If the Object attribute is a string representation of a Document,

Re: forwarding JDOM-Objects

2006-01-06 Thread Giuseppe Briotti
== Date: Fri, 06 Jan 2006 17:15:45 +0100 From: Christian Stalp [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Subject: Re: forwarding JDOM-Objects == Duan, Nick schrieb: Don't forget type casting the object. String

RE: forwarding JDOM-Objects

2006-01-06 Thread Duan, Nick
By type casting I mean: Document mydoc = (Document) req.getAttribute(yourobjname); Viel Glueck! ND -Original Message- From: Christian Stalp [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 11:16 AM To: Tomcat Users List Subject: Re: forwarding JDOM-Objects Duan, Nick schrieb