hi guys, can i pass values from a jsp to a java code.any help is welcome. regards
Joined: Jan 31, 2004
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.
Joined: Nov 01, 2002
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?