HttpSession + SwingClient


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: HttpSession + SwingClient

  1. #1
    Holger Prause Guest

    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).]



  2. #2
    Sachin Guest

    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).]
    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center