tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Beyer" <jbe...@princeton.edu>
Subject response.sendredirect failig from an included .jsp
Date Tue, 03 Aug 2004 20:35:10 GMT
The code 'response.sendRedirect( "http://www.yahoo.com" )' fails when the  
containing jsp is included from another jsp.  Should this be failing?   
What am I doing wrong?  By 'failing', I mean that there is no exception  
thrown, and no error message, but simply no redirect.

e.g. (the redirect works properly when foo.jsp is called directly, but  
fails when foo2.jsp is called):

foo2.jsp
------------

<%@ page language="java" import="java.lang.*,java.util.*" %>
<%@ include file="foo.jsp" %>

foo.jsp
------------

<%@ page language="java" import="java.lang.*,java.util.*" %>
<%
   response.sendRedirect( "http://www.yahoo.com" );
%>


Thanks,
Jon



-- 

We don't stop playing because we grow old,
we grow old because we stop playing

"Try not.  Do.  Or do not.  There is no try."  -Yoda

Jon Beyer
412 Brown Hall
Princeton University
Princeton, NJ 08544

609 986 7453

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message