This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
In the action form , the validate method has the following logic
errors.add("", new ActionError("error.price"));
so , in the JSP , when i enter the following value for the fields
Product Name :----> test Description :-----> testDesc
and click on the "Add Product" button , since the price file is having the value ="1" , the request gets redirect to the same product.jsp , dispaying the appropriate message( error.price ,define in the property file) in product.jsp.
Now my question is , In case of error , when the request is been redirected to the product.jsp page, why does the JSP retains the form values.
Product Name :----> test
Description :-----> testDesc