2
My page index.jsp
uses Servlet and then sends it to resposta.jsp
.
In the resposta.jsp
Depending on the button, I use the Servlet to use another Java function.
But I don’t know how to make this use.
In my Serrvlet I use:
RequestDispatcher rd = request.getRequestDispatcher("resposta.jsp");
rd.forward(request,response);
that sends to resposta.jsp
.
PS: remembering that I already use an if/elseif to verify which should be sent, my problem is not knowing if I can create two getRequest
or something like that.
You set the example you gave me. But I have a problem now. I have an IF and ELSE IF and the two send to the same page only with different values, but if the person enters the if option(shows the result) and the person goes back to the page and tries the Else if option, it doesn’t work. You know what I can do?
– Pacíficão
@Peaceful back on vacation now, since I take a look at it
– Math
@Peaceful man, I let your question fall into oblivion, rs.. It was bad. You already solved?
– Math
Yes. Anyway, thank you for your concern.
– Pacíficão