I have a view Search.jsp that has a form:form that is connected to a ModelAttribute. I want to have a “Reset” Button in my view that will reset the Search Form.
I’m currently doing it using a simple link to reload the page, but that sends a new request to the server. Is there a way I can do this in JSTL, without hitting the server i.e. client-side?
A reset button doesn’t work, since values are bound to the @ModelAttribute (unless the page has been freshly loaded)
No, JSTL are server side. You need to do it with javascript.
jQuery is nice. Something like