Problem with servlet is that, I have to maintain consistency of names across HTML form and Servlet,
String data = request.getParameter(FIELD_NAME);
and
<input name=FIELD_NAME ...>
Is there any standard practice to avoid such inconsistency? Also is it possible to make servlet reusable, so that we can add new fields in form without modifying Servlet code?