This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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();
It is sorta covered in the JavaRanch Style Guide.
subject: bean to servlet
Similar Threads
Question regarding EL and standard action from HF Servlets and JSP
Problem in inserting record to Oracle Database.
where is the Busness logic in Model 2 pattern