My page index.jsp
uses the Servlet and then sends it to resposta.jsp
.
In resposta.jsp
depending on the button, I use the Servlet to use another Java function.
But I do not know how to make this use.
In my servlet I use:
RequestDispatcher rd = request.getRequestDispatcher("resposta.jsp");
rd.forward(request,response);
which sends to resposta.jsp
.
PS: remembering that I already use an if / elseif to check which one should be sent, my problem is not knowing if I can create two getRequest
or something like this.