This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Trying the following code in Tomcat(4) when the request gets to the target jsp, there is no QueryString(prmPage=value1) attached to the request? (it works fine with OC4J though) How I can send parameters with senRedirect in Tomcat? String path= request.getRequestURL().toString(); response.sendRedirect(path+"?prmPage=value1"); Thank you
Usually, only a request contains parameter, cos you wanna send sth to the server for processing. After the process, the server returns the data to you, maybe text, html, whatever. However, it does not need a query string, as all info are inside the result already. So, maybe you need to think whether you really need reponse.sendRedirect(). Nick.