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
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
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,
--
]
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
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;