hi,
>From my opinion redirection will work fine.
But if u use through session it will be same .So there
is no use to do it through session....
so go to first one option.




--- Geeta Ramani <[EMAIL PROTECTED]> wrote:
> Hi Shawn:
>
> Here's a round-about way of achieving this:
>
> In doGet of test servlet,
>     if req.getParameter("user") is nonnull, then set
> a session var called
> "user" with value "me", then do a sendRedirect to
> test itself.
>     else do your processing with session var "user".
>
> (The redirection will reset your url.)
>
> Maybe there is an simpler more direct way way of
> doing this (using JavaScript
> maybe..?) but I believe the above will work too..
> :-)
> Geeta
>
> Shawn Sohl wrote:
>
> > Is it possible to change the URL from a Servlet.
> For example, if I call a
> > servlet from a web page, lets say
> > "www.test.com/servlet/test?user=me"........
> >
> > Now servlet "test" does some processing and writes
> HTML back to the client.
> > At this point my URL is still
> > ""www.test.com/servlet/test?user=me"........... Is
> it possible for the
> > "test" servlet to do its processing, the write the
> HTML, but reset the URL
> > to "www.test.com"
> >
> > Thanks
> > Shawn
> >
> >
>
___________________________________________________________________________
> > To unsubscribe, send email to
> [EMAIL PROTECTED] and include in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> > Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help:
http://www.lsoft.com/manuals/user/user.html


__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to