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