Re: forwarding JDOM-Objects

2006-01-16 Thread Christian Stalp
Im still hanging on this problem: The calling servlet receives data from the web-interface and builds a JDOM-object call mydoc. Then I build a ServletContext-object and put the JDOM-object into it: ServletContext con = this.getServletContext(); con.setAttribute("jdom_object",mydoc); //

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 t

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
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 = this.getServletC

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

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 i

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

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 > Subject: Re: forwarding JDOM-Objects > == > > Duan, Nick schrieb: > > >Don't forget t

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 Doc

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 pref

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 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(..). Ins

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
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. ND -Original Message- From: Christian Stalp [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 9