| Author |
passing values from jsp to java
|
racer mec
Greenhorn
Joined: Feb 15, 2005
Posts: 4
|
|
hi guys, can i pass values from a jsp to a java code.any help is welcome. regards
|
 |
Aaron Parker
Greenhorn
Joined: Jan 31, 2004
Posts: 27
|
|
I know of one way using HTML forms. You can pass in user entered data and retrieve it from the request in the called servlet: ... ... Then in the DoLogin servlet: If you need to pass non user entered values, it's possible by passing it thru the action parameter of the form, but I'm here trying to find out how! Hope this helps. Aaron Parker
|
 |
Scott Duncan
Ranch Hand
Joined: Nov 01, 2002
Posts: 363
|
|
|
Form input is only one way to do it. Values passed in the session, application context, or the request URL are also options. Of course you can use several different persistence mechanisms but this probably isn't what you're looking to do.....
|
No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?
|
 |
 |
|
|
subject: passing values from jsp to java
|
|
|