basically you'd better use a Http client library (like HttpClient ) that
will make it easier.

check this as starting point ...
http://www.mail-archive.com/[EMAIL PROTECTED]/msg06270.html
note that here they have the jsessionid known .. but in your case you will
need to know that.
I think the library is providing an easy way to do that (that's to read the
cookies that is sent at the very beginning request)


On Fri, Sep 12, 2008 at 8:36 AM, ANITA.2310 <[EMAIL PROTECTED]> wrote:

>
> How can i achieve this?
>
>
> Youssef Mohammed wrote:
> >
> > make sure you are handing the session id at the very beginning the
> session
> > id is sent back in a cookie , you need to either send it back at any
> > request
> > (as cookie) or use URL rewriting to embed it in the request URL.
> >
> > On Fri, Sep 12, 2008 at 7:48 AM, ANITA.2310 <[EMAIL PROTECTED]>
> wrote:
> >
> >>
> >> I have 2 Servers,one is Tomcat and another is Sun Application Server.
> >> I want to send request from Sun Application Server to Tomcat and again
> >> come
> >> back to Sun Application server.
> >> For Eg.
> >> I started from page http://anitad:1780/login/login.jsp,
> >> After login, i got another page, from here i m calling
> >> http://anitad:8080/login/process.jsp,
> >> and in OnLoad of this page i called
> http://anitad:1780/login/Success.jsp.
> >>
> >> But,when i m calling http://anitad:1780/login/Success.jsp,it is giving
> >> "Session Expired".
> >> Please reply ASAP.
> >> Thanx in advance.
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Send-Request-from-One-Server-to-Another-Server-tp19449857p19449857.html
> >> Sent from the Tomcat - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To start a new topic, e-mail: users@tomcat.apache.org
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > Regards, Youssef
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Send-Request-from-One-Server-to-Another-Server-tp19449857p19450328.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Regards, Youssef

Reply via email to