RE: Forwarding with parameters

2003-07-24 Thread René Vangsgaard ML
You cannot change protocol inside a reuqest. To change protocol you have to send a redirect to the browser. -Original Message- From: Gil Hauer To: Tomcat Users List Sent: 24-07-03 13:44 Subject: Forwarding with parameters Hello, I have code in a servlet that, based on transaction

RE: Forwarding with parameters

2003-07-24 Thread Shapira, Yoav
AM To: 'Gil Hauer '; 'Tomcat Users List ' Subject: RE: Forwarding with parameters You cannot change protocol inside a reuqest. To change protocol you have to send a redirect to the browser. -Original Message- From: Gil Hauer To: Tomcat Users List Sent: 24-07-03 13:44 Subject: Forwarding

Re: Forwarding with parameters

2003-07-24 Thread Rick Roberts
I forget all the reasons why at the moment, but I use sendRedirect() instead of forward(). String target = page1.jsp?param1= + val1 + param2= + val2 + param3= + val3; response.sendRedirect( target ); Hope this helps, --

RE: Forwarding with parameters

2003-07-24 Thread Berry, Layton
] Sent: Thursday, July 24, 2003 6:23 AM To: Tomcat Users List Subject: RE: Forwarding with parameters Howdy, Yup, use sendRedirect. Or add a filter with a servlet request wrapper mapped to index.jsp that checks and adds parameters as needed. Yoav Shapira Millennium ChemInformatics -Original

Re: Forwarding with parameters

2003-07-24 Thread Gil Hauer
Perfect! Thanks for the help. Gil On Thu, 2003-07-24 at 10:54, Rick Roberts wrote: I forget all the reasons why at the moment, but I use sendRedirect() instead of forward(). String target = page1.jsp?param1= + val1 + param2= + val2 + param3= + val3;