This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes pass value into bean from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "pass value into bean from servlet" Watch "pass value into bean from servlet" New topic
Author

pass value into bean from servlet

dibs dibley
Greenhorn

Joined: Aug 31, 2003
Posts: 13
Hi,
Just wondering how i pass a value into a bean from a servlet directly without having to do a submit button. The bean will do a database lookup based on that value!

Thanks
Eelco den Heijer
Ranch Hand

Joined: Jan 17, 2002
Posts: 61
Do you mean: who do I access the web server layer from a web page directly, without a GET/POST? It is tempting to think that you can access a bean in a JSP directly, i.e. without a POST or GET, because all the code is in one JSP; but the JSP lives on the servlet, and the HTML is produces is sent to the client (over HTTP). So if the former is what you mean, the answer is no. Otherwise, please elaborate your question please.


== <br />Rgrds,<br />Eelco<br /> <br />SCJP, SCJD, SCBCD, SCWD, SCEA
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pass value into bean from servlet