Originally posted by John Lincoln:
Do iam missing some thing here
I don't know what "do iam" means, but the thing that you are missing is that any code on a
JSP page gets executed on the server in order to render the HTML page to send to the browser.
Therefore, your bean, and all the code on the page to set it up, executes before the form is even sent to the browser.
You shouldn't be doing anything on the JSP page to try and capture form input. That's the job of the
servlet that you are submitting to. The role of the JSP is just to format the form to send to the browser.