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
JavaRanch » Java Forums » Java » JSP
Bookmark "simple problem" Watch "simple problem" New topic
Author

simple problem

dhriti joshi
Ranch Hand

Joined: Aug 13, 2002
Posts: 82
hi,
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.
thanks,
dhriti.
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.
Kishore.


Kishore
SCJP, blog
Anand Gondhiya
Ranch Hand

Joined: Feb 24, 2004
Posts: 155
when you submit a.html you go to b.jsp...now 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