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 attribute to the servletcontext. Since both
> > revlets runs in the same container, they both have access to the same
> > servlet-context, and can exchange objects there ?
> >
> >the sending one :
> >Document o = new Document();
> >this.getServletContext().setAttribute("jdom_object",o);
> >
> >
> >the recieving one :
> >
> >Document o = (Document) this.getServletContext().getAttribute("jdom_object);
> >
> >Frode Halvorsen
>
>
> My only question now is, after I wrote this object, somewhere any
> servelt on that container can access on to it, how I can call the other
> servlet to start and process? With an URL?
>

I'm jumping into your thread without reading previous messages on this thread.

I think you want on servlet to create and set a JDom object that
another servlet should be able to use. Further, you want the other
servlet to get activated once this servlet has set the object into the
session.

You could call the other servlet explicitly with a RequestDispatcher.forward().

-- Sriram

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

Reply via email to