posted 18 years ago
Hi,
You can change the header details of the request before it reaches the action class.
You write one class which extends RequestProcessor, the looks like below one
//First check if the connection is secure.
try{
if (request.getHeader("HTTP")==null || !request.getHeader("HTTP").equals("on")){
response.sendRedirect("HTTP"+request.getRequestURI()+"?"+request.getQueryString());
return false;
}
}
catch(Throwable t){
log("There is a Exception in the request Processor while redirecting the request",t );
return false;
}
//
return true;
}
The RequestProcessor class will be excecuted before calling the action class and change the header from HTTPS to HTTP.
I have not tested the code. But, have a try and also look for other replies.
With Regards,<br />Saravanaprabu Baskaran<br /> <br />SCJP 92 %<br />SCWCD 98 %