Hey,
Try putting a 'return ;' after the response.sendRedirect( ... ); --
otherwise you'll end up with all kinds of confusion.
At 05/10/2001 11:30 -0500, Brandon Cruz wrote:
>I also posted a similar problem yesterday. When I attempt to do a
>response.sendRedirect it seems like the apache+tomcat configuration hangs.
<snip>
>Brandon Cruz
>
>-----Original Message-----
>From: Ben Carterette [mailto:[EMAIL PROTECTED]]
>I upgraded Monday from apache+jserv to Apache 1.3+Tomcat 3.2.1+mod_jk,
>and I'm experiencing some bizarre problems with some of my webapps. One
>in particular looks like this:
>
>index.jsp
>-----------
><%@ page import="java.sql.*" %>
>
><%
>if (request.getRemoteAddr().equals("..."))
>{
> response.sendRedirect("http://10.1.1.6/same page");
> // 10.1.1.6 is the internal ip address of the machine this page is
>on
>}
'Course you may have to rearrange the logic a bit ... if you want to avoid
the endless loop.
>session.invalidate();
>session = request.getSession(true);
>
>session.set a bunch of attributes
>%>
><form action=login.jsp method=post>
>...
></form>
>
>login.jsp
>-----------
>request.get some parameters
>session.get a bunch of attributes
<snip>
>Grateful for any help,
>Ben Carterette
>[EMAIL PROTECTED]
HTH
B.
Beau Bisquette
TPC Productions
Oakland, California