I would like to have an input ‘submit’ calling a method from the Java EE java servlet that is responsible for showing the JSP.
<form action="????" method="post">
<input type="image" src="img/icons/cross.png" alt="Remove widget">
</form>
The above form method (another solution is also welcome) should alert the Servlet and include the id of the widget that has to be removed. How can I accomplish something like this, without using scriptlets and with using a MVC set-up.
The servlet included the widgets in the JSP by using the following line of code:
request.setAttribute("widgets", widgets);
Thanks:)
Thanks guys. With the suggestion of Alexandre I managed to fix my problem:)