Hi guys, I'm having problems with my redirection code for a javaservlet code.
When a user clicks the Register button...
>the /regisration_page servlet will be shown wherein it have requestDispatchers composed of 3 fragments (banner.jsp,footer.jsp,content.jsp)
>the content.jsp contains the <form action="/register" method="POST"> when the user finishes filling up the necessary information, the servlet /register will then insert the data into the database.. well it work fine..
>but then i need to redirect the user to a page that will notify him if the registration is successful.
I tried the following...
In the /register servlet I inserted the ff in the doPost:
and I created a new fragment named registrationStatus.jsp that will get the parameter
And then how will I show the page to my user?
I thought of using the processRequest in the /register servlet wherein I used the RequestDispatcher to combine 3 jsp fragments and send it back to the client:
And its not working... I don't know what I did wrong.. is there something wrong with my logic???
Help will be much greatly appreciated. Thank you!