You can always include the logic in the page that hosts the form.
<input name="name" type="text" value='<%=(request.getParameter("XYZ")!= null ? request.getParameter("XYZ") : "")%>'>
- set a condition to display the error to the user where appropriate in the page
- add an error attribute (collection of errors if needed) to the request while in the servlet if errors occur
- have the RequestDispatcher forward to the original page
My prefered method is to create a preview
jsp page where I verify the inputs before submiting for processing.
SCJP, SCWCD, SCBCD, IBM CSD WebSphere v5, <br />A+, MCP 2000 and 2000 server, CST, and few incompleted certification tracks.<br /> <br />Ivory Coast<br /> <br />Analyze your web Request/Response @ <a href="http://webtools.servehttp.com" target="_blank" rel="nofollow">http://webtools.servehttp.com</a> down for a while...