View Full Version : Auto compile a servlet

03-19-2012, 10:56 PM

I have a form.jsp with the following :

<form action="LoginServlet">
<input type="text" name="username">
<input type="password" name="userpass">
<input type="submit" value="submit">

The post request is sent to LoginServlet so I can't catch it from this file "form.jsp". So How to enable auto compilation in LoginServlet so it will have the seem behavior as jsp files, because if I made change to jsp file the server automatically take the new changes into account but for a servlet it should be normally compiled but how to tell the server to always autocompile it from one side and from an other side if it is possible to catch the form post parameters from form.jsp ?