I use MVC pattern and my servlet serves me to process the request and give me a new page path to go. What if I just want to redirect from one page to another using servlet? Would it be ok or I should just use regular link redirecting?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You mean, first POST and then redirect? This makes not really sense if you aren’t sending any data. Just make it a normal GET link and let the servlet if necessary do the preprocessing on
doGet(). The advantage is that it’s bookmarkable and SEO-friendly.