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 =
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
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
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
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
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
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
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.?
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
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
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...
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,
==
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
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
14 matches
Mail list logo