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
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
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
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
Remy Maucherat schrieb:
Nice, but completely wrong. STM in Tomcat uses an instance pool which
allows having a minimal impact (something like 5%), and it will
perform much better than syncing, unless the said sync is trivial.
The reason this is deprecated is because some people thought it would
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
--
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.?
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
Htt
Remy Maucherat wrote:
It's deprecated because it is confusing, but it is actually very
useful performance wise in some cases, since it does pooling. I will
make sure this feature remains available in the future.
That means, I still can use it?! Deprecated is not prohibited!?!! Is
there any
Hello out there,
I want to build a servelt which access a database. To avoid
race-conditions and to realize synchronous access, I decited to make a
"Singe Thread" Servlet. But Eclipse told me that this is no longer a
usable code.
So what can I do else?
Thank you...
Gruss Christian
---
11 matches
Mail list logo