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...
>
> Gruss Christian

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,
you will have to do whatever is necessary to create a Document from
that string. (I don't know how JDOM works.)
--
Len

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to