You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by James Andersen <ja...@byu.net> on 2003/04/15 07:54:01 UTC
response.redirect problem...
Hey Everyone,
I've got a plain old java class file that has a static method I'm
calling from a JSP page. This method receives the request and response
objects from the JSP page.
When I call sendRedirect on the response object nothing happens. I've
got System.out's both before and after and they both show up. The page
isn't redirected. No exceptions, (except those caused later on because
the page should have redirected and didn't.) Anybody have any ideas?
I'm plumb out.
Thanks!
James Andersen
Re: response.redirect problem...
Posted by Tim Funk <fu...@joedog.org>.
Check localhost_log{date}.txt.
-Tim
James Andersen wrote:
> Hey Everyone,
> I've got a plain old java class file that has a static method I'm
> calling from a JSP page. This method receives the request and response
> objects from the JSP page.
> When I call sendRedirect on the response object nothing happens. I've
> got System.out's both before and after and they both show up. The page
> isn't redirected. No exceptions, (except those caused later on because
> the page should have redirected and didn't.) Anybody have any ideas?
> I'm plumb out.
>
> Thanks!
>
>
> James Andersen
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: response.redirect problem...
Posted by Justin Ruthenbeck <ju...@nextengine.com>.
Hopefully I understand your situation correctly...
sendRedirect does nothing more than add an HTTP header to the
HttpServletResponse object you're calling it on. It doesn't do anything
immediate, so the behavior your're seeing (System.out's before and after
the call) is correct.
I'm guessing you're looking to forward the request to a different
resource. Check out the RequestDispatcher for that.
Like I said -- hopefully I understood the question correctly.
justin
At 10:54 PM 4/14/2003, you wrote:
>Hey Everyone,
> I've got a plain old java class file that has a static method I'm
>calling from a JSP page. This method receives the request and response
>objects from the JSP page.
>When I call sendRedirect on the response object nothing happens. I've
>got System.out's both before and after and they both show up. The page
>isn't redirected. No exceptions, (except those caused later on because
>the page should have redirected and didn't.) Anybody have any ideas?
>I'm plumb out.
>
>Thanks!
>
>
>James Andersen
>
>
____________________________________
Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential
See http://www.nextengine.com/confidentiality.php
____________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org