Thanks Mike, I figured out how to modify the tomcat source to expose a method to allow me to change the URL but I really don't wont to do that.
-----Original Message----- From: Mike Jackson [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 7:28 PM To: Tomcat Users List Subject: RE: Request dispatcher I'm not an expert, but I think unless you involve the client I don't think there's a way to change the URI. And you're right, sometimes the sendRedirect doesn't work, some clients ignore it (in my experience at least). --mikej -=----- mike jackson [EMAIL PROTECTED] > -----Original Message----- > From: Dave Finch [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 16, 2002 4:02 PM > To: 'Tomcat Users List' > Subject: RE: Request dispatcher > > > I understand that. But I don't like the idea of sending the redirect > instruction to the client. Is it not correct that the user may > sometimes see > 'the resource has moved' or similar? > I would much rather keep everything serverside. > > Dave Finch > > -----Original Message----- > From: Mike Jackson [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 16, 2002 5:31 PM > To: Tomcat Users List > Subject: RE: Request dispatcher > > Request dispatchers aren't the same a redirects (what I think > you're looking > for). As I understand things a request dispatcher is done on the server, > ie the page accessed accesses another page and the page you access still > looks > like the one you originally hit. A redirect will send them to > another page > and the url still change. Fortunately it's easy to do redirects, > there's a > sendRedirect method on the response object. > > --mikej > -=----- > mike jackson > [EMAIL PROTECTED] > > > -----Original Message----- > > From: Dave Finch [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, May 16, 2002 12:58 PM > > To: 'Tomcat Users List' > > Subject: Request dispatcher > > > > > > Hi, > > > > I am trying to use the request dispatcher to send the user to > > another page. > > Everything is working fine but the URL on the new page is the originally > > requested url which causes issues if the user refreshes or bookmarks the > > page. > > Is there any way of changing the URL in the request object? (I > > don't want to > > use a client side sendRedirect) > > I am using Tomcat 4.0.1 > > > > TIA, > > > > Dave Finch > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>