7
Hello, I have a question with Servlet’s.
Picture the picture:
raiz /
/ formulario.jsp
/ Servlet
/ retornos / retorno.jsp
The form sends to Servlet the data by post or get!
After this submission, using Requestdispatcher what actually occurs?
A) return.jsp is included in.jsp form
B) Servlet redirects data from it to return.jsp
C) Servlet includes return.jsp in its body as if printing a text?
What happens in reality?
Using Requestdispatcher#include, or Requestdispatcher#forward?
– jpkrohling
Requestdispatcher#forward
– Carlos Rocha
the name itself already says... #forward will be redirected.. #include will be included
– Pedro Laini
@Pedrolaini. A), B) or C) is the correct alteration?
– Carlos Rocha
see the answer
– Pedro Laini