This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Agree with Ulf. Although you can hide the URL from the user, it's not a good solution. Instead, the recommended way is to harden your servlet to take care of exception conditions.
It could be that your servlet only supports the POST method. One solution is to implement a doGet method that forwards the user to the page that contains the form.
Originally posted by Ben Souther: It could be that your servlet only supports the POST method. One solution is to implement a doGet method that forwards the user to the page that contains the form.
Thanks to Ulf and Sandeep. But I prefer Ben's idea.
I can check the the input parameters but sounds clumsy in complex form. If I use struts or other frameworks (not sure which ones), do they have build-in mechanism to valdate user input?