Boresm Borest wrote:
The form post data are sent to LoginServlet as usual but I want to be able to catch the form data in the form.jsp file itself exactly as php does. I am surprised way php has this feature where jsp no!! Because I want to use the form data to process some tasks as well as sending the user to LoginServlet.
Regards
Nam Ha Minh wrote:
Bear Bibeault wrote:
Nam Ha Minh wrote:
Not correct. Post parameters are never placed in request scope.
And, as has already been pointed out, posting to a JSP is a poor practice that should not be encouraged.
Boresm Borest wrote:Hi
I have a form.jsp file which has the following :
The form post data are sent to LoginServlet as usual but I want to be able to catch the form data in the form.jsp file itself
Boresm Borest wrote:Okay I managed for a solution; action=form.jsp instead of action=LoginServlet.
For the purpose of that is to process some checks before sending the user to the servlet that is all the story
It is the servlet which will process the post request using doGet and doPost procedures so I keep respecting the rules
thoses checks didn't looks into the post data itself but does something else.
Boresm Borest wrote:I think you are neglecting a bit the jsp technology
html just html suffice no ?
Boresm Borest wrote:So that simply mean that I can put the form into the servlet as well as into the jsp.
Have a single question now. When I press submit button of http://myserver.com/homelogin/login.jsp I want to http://myserver.com/homelogin/servlogin does this mean that now I am no longer in the login.jsp file but I am in the servlogin servlet do you ?
Boresm Borest wrote:but the link that change from the first which is http://localhost/../homelogin/login.jsp to http://localhost/../homelogin/servlogin so what this mean ?
this mean that people who program that have made the form in the servlet because if it wasn't in the servlet than it is http://localhost/../homelogin/login.jsp that should appear again.
Boresm Borest wrote: this mean that people who program that have made the form in the servlet because if it wasn't in the servlet than it is http://localhost/../homelogin/login.jsp that should appear again.
Wink, wink, nudge, nudge, say no more, it's a tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
|