This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Servlets and the fly likes bean to servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "bean to servlet" Watch "bean to servlet" New topic

bean to servlet

sihani rani
Ranch Hand

Joined: Jun 22, 2010
Posts: 32
how can i send data from java bean to servlet???

thanks in advance..
David Newton

Joined: Sep 29, 2008
Posts: 12617

Not sure what you mean; what are you actually trying to do?
Nilesh Miskin
Ranch Hand

Joined: Jun 17, 2010
Posts: 44
A Java bean is supposed to be a "Model". In other words, it is supposed to hold the state information. You don't send data from Java bean to a servlet. Servlet is the one that will manipulate a Java bean directly or indirectly & access the bean to get the state information.

Nilesh Miskin
mahesh shinde
Ranch Hand

Joined: Jul 24, 2009
Posts: 69

What you mean I cant understand
But If you want to access the value then access them using getter and setter
like beanObject.getProperty();
jQuery in Action, 3rd edition
subject: bean to servlet
It's not a secret anymore!