Howdy, Use an HttpServletRequestWrapper and override getQueryString and/or related getParameter methods.
Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Jon Beyer [mailto:[EMAIL PROTECTED] >Sent: Wednesday, August 04, 2004 9:43 AM >To: [EMAIL PROTECTED]; Tomcat Users List >Subject: Re: response.sendredirect failig from an included .jsp > >Tim, > >Thanks for the info. The redirect that I'm trying to achieve is actually >internal to my site. So I started looking at >requestdispatcher.forward( ), but it appears to me that you have to simply >pass the same 'request' and 'response' variables into it. I need to be >able to clear the variables in the query string. Any ideas? > >Thanks, >Jon > > > >On Tue, 03 Aug 2004 19:50:11 -0400, Tim Funk <[EMAIL PROTECTED]> wrote: > >> Yes it should be failing. You cannot set headers or issue redirects from >> an include. (Its a rule in the spec) >> >> -Tim >> >> Jon Beyer wrote: >>> 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" ); >>> %> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > > >-- > >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: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]