File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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 !!!
I agree. Here's the link:
subject: simple problem
It's not a secret anymore!