This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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 !!!
I agree. Here's the link:
subject: simple problem
Similar Threads
Is session shared across JSPs in separate web applications?
JSF ValueChange problems and Default method where the form submits to
How to Get JSF inputText Value to JavaScript?
indexed properties