aspose file tools
The moose likes JSP and the fly likes passing values from jsp to java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "passing values from jsp to java" Watch "passing values from jsp to java" New topic
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?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: passing values from jsp to java
 
Similar Threads
substraction wih ajax
Change Number Format in entire application
how show values in jsp from getting database
Struts Issue
hi everybody me Epsan new to this Forum,to Java