HTTP question


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: HTTP question

  1. #1
    Join Date
    Apr 2003
    Posts
    7

    Question HTTP question

    Hi dudes, I've got a new question and I think you`ll get me near to a solution.
    The fact is tha I`ve got my aplicattion running on a servlet, and when the client cliks or whatever, I see on the navigation bar, the address of the servlet, and the operation that the client run on the servlet.
    I need to codify (?) the result of that operation. But it gots worse, when I check for his identity and password
    because I got something like this on the navbigation bar:

    http://200.81.20.227/auditoria/servlet/com.ds.framewor
    k.request.http.FrontServlet?op=LoginAuditoria&usuario=1VI&passwd=AAAA&pagInici
    o=1&oidAplicUsu=345075

    I`d like to seed it *** hotmail does:
    Eg:

    http://200.81.20.227/auditoria/servlet/com.ds.framewor
    k.request.http.FrontServlet?
    XAKJASL—FKJDAFLK—JEKN:;CXD:;FN?SEDF)(S=F)(

    I must say somenthing, to forward pages, we use one of to methods:

    RequestDispatcher rd = servlet.getServletContext().getRequestDispatcher(nextURL);
    //I must codify the nextUrl
    rd.forward(req, res);

    OR:

    HttpServletResponse res ...........
    ....
    ...
    ...
    res.sendRedirect(nextURL); //I must codify the nextUrl

    Thanks so much

  2. #2
    Join Date
    Mar 2003
    Posts
    86

    Use HttpSession

    Instead of passing the used id / password on every request, just pass it on the login. In the login procedure put the user id / password in the web session.
    You can get it from every request made within this session. One more "free" feture that you get is that the session expires after predefined period.

    Look for HttpSession.

    Sharbov.

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