File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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();
I agree. Here's the link:
subject: bean to servlet
It's not a secret anymore!