HttpSession + SwingClient
I wrote 3 Servlets performing some action and
just looking up if there's a Session and 1 Servlet creating a Session(that
my
LoginServlet).If i use a Webbrowser - every thing
is workin fine.
Now i want my SwingClient to use the Servlets.
I can create a Session calling my LoginServlet
using the class URL.But when i connect to the other servlets , they tell
me that thers no
Session.
Now i search for a possebility to get the session
from my LogingServlet and transfer it to my other servlets.
My first Idea was to use res.encodeUrl()
- and write it out as HTML comment, the i send a request,
parse the HTML Paage , and get the rewrittenURL.
BUT : this dont works - i als dont works with the Webbrowser.
I deactivated cookies ! so res.encodeUrl() should work nut i dont
Do anyone of you know what ot do ?
thx,
Holger
[This message has been edited by Holger Prause
(edited January 08, 2001).]
Re: HttpSession + SwingClient
Hi,
This should not happen !!!
How r u invoking one servlet from other ???
Are you passing "GET" by a call to URL method.
Actually the browser only passes GET url, so if ur client passes this, the
servlet has no idea of knowing from where the request has come !!!
Also r u using session objects???
Sachin
"Holger Prause" <h.prause@gmx.net> wrote:
>
>
>
> I wrote 3 Servlets performing some action and
>just looking up if there's a Session and 1 Servlet creating a Session(that
>my
> LoginServlet).If i use a Webbrowser - every
thing
>is workin fine.
>
>
> Now i want my SwingClient to use the Servlets.
>
> I can create a Session calling my LoginServlet
>using the class URL.But when i connect to the other servlets , they tell
>me that thers no
> Session.
>
>
> Now i search for a possebility to get the session
>from my LogingServlet and transfer it to my other servlets.
>
> My first Idea was to use res.encodeUrl()
> - and write it out as HTML comment, the i send a request,
> parse the HTML Paage , and get the rewrittenURL.
> BUT : this dont works - i als dont works with the Webbrowser.
> I deactivated cookies ! so res.encodeUrl() should work nut i dont
>
>
> Do anyone of you know what ot do ?
>
> thx,
>
> Holger
>
> [This message has been edited by Holger Prause
>(edited January 08, 2001).]
>
>