my simple question is:
by default, when i do request.getRequestDispatcher("\someUri").forward(request, response);
will it be a doPost
or a doGet
request?
and what exacly does it depend on? (assuming i didn't make wrapper class.)
my simple question is:
by default, when i do request.getRequestDispatcher("\someUri").forward(request, response);
will it be a doPost
or a doGet
request?
and what exacly does it depend on? (assuming i didn't make wrapper class.)
doGet()
/doPost()
depends on your request'METHOD'
type. If it isGET
thendoGet()
. If it isPOST
thendoPost()
. While doing forward you are passing same request as parameter. So, that same request METHOD type decides your forward type.