it seems that this doesn't actually send the redirect right away.  It only
Marks the redirect to happen after the JSP is finished.  This means any
logic AFTER the redirect will still happen.  Not only that, but if you do a
second sendRedirect, it replaces the first.

We have found that putting "return;" on the next line helps (it returns from
the generated service() method).

Does anyone else know a way around this!

Tony

-----Original Message-----
From: Petr Podsednik
To: Orion-Interest
Sent: 1/5/01 1:02 AM
Subject: Re: Redirection

I use this approach in my jsp:
   ....
    response.sendRedirect("newSelectedURL");
   ....
This causes pointing my browser to the "newSelectedURL" and it works
fine.
Petr

----- Original Message ----- 
From: Huibert Aalbers <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Sent: Thursday, January 04, 2001 5:07 PM
Subject: Redirection


> Hi everyone,
> 
> Since it seems that the list is alive and well, although with very
> little traffic, I would like to ask a question which has been
bothering
> me for a while.
> 
> I am trying to do what I would define as dynamic redirection. What
that
> means is that if someone writes an URL like http://myserver/name, I
> would like to look for "name" in a database and redirect the user to
> some other URL. This would allow me to avoid modifying manually the
> configuration file every time a mapping is added,removed or modified.
> 
> Is this possible? Any suggestions?
> 
> Thanks in advance and Happy New Year!
> 
> Huibert Aalbers
> 


Reply via email to