aspose file tools
The moose likes JSP and the fly likes simple problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "simple problem" Watch "simple problem" New topic

simple problem

dhriti joshi
Ranch Hand

Joined: Aug 13, 2002
Posts: 82
if i have to get an inputfield value from a previous jsp i say request.getparameter(),
what should i say if i have to get the value of an inputfield from same jsp.
john smith
Ranch Hand

Joined: Mar 04, 2004
Posts: 75
Submit the JSP to itself and call use request.getparameter() as you normally would.
Kishore Dandu
Ranch Hand

Joined: Jul 10, 2001
Posts: 1934
some times you may want to use something like JavaScript to validate values based on fields inside the same JSP.

SCJP, blog
Anand Gondhiya
Ranch Hand

Joined: Feb 24, 2004
Posts: 155
when you submit a.html you go to again submit on the b.jsp so that it will submit on b.jsp itself !!!
It is sorta covered in the JavaRanch Style Guide.
subject: simple problem