Hello, Tomcat User's List,

There was some talk a few days ago about "response.sendRedirect()" after a POST 
request being against the HTTP specification...  is that really true?  For example, 
would this be a problem?  IE and Netscape seem to do what I want!


// This is common trick I use after a form submission to
// help make navigation easier for the user, and to help
// avoid dual-submission of the same form.
//
// "request" is an HttpServletRequest and "response"
// is an HttpServletResponse.

if ( "POST".equalsIgnoreCase( request.getMethod() ) )
{
   StringBuffer buf = new StringBuffer();
   buf.append( request.getRequestURI() );
   buf.append( "?" );
   buf.append( request.getQueryString() );
   response.sendRedirect( buf.toString() );
   return;
}


I would appreciate any advice anyone might have.


yours,

Julius Davies, Programmer, CUCBC
Email: [EMAIL PROTECTED], Ph: 604.730.6385

This email represents my personal opinions and concerns and not those of CUCBC.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to