by using the method forward()
I can "send" variables using request.setAttribute()
.
What if i should use sendRedirect()
instead?? How can i "send" a variable to the destination page?
I don't like to do something like this: sendRedirect("page?varName=varValues")
, i don't like to see variables names and values written on the browser.
Is there a way to send variables in a hidden way when using sendRedirect()
?
Thank you