I have created a form in jsp page(index.jsp) with simple form elements and css. But I want to partially-submit this form to a servlet and then want to output entered values on the same jsp page(index.jsp) as the form. Is there any way to do this without having a submit button?
How can I make sure that the entered values remains same even after I redirect servlet to jsp page after processing?
The easiest way would be to re-route the form submission to an Ajax request rather then a full-page refresh. That way, the original page stays displayed and you don't have to worry about re-creating it with original values.