aspose file tools*
The moose likes Servlets and the fly likes Problem in passing values from servlet to beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem in passing values from servlet to beans" Watch "Problem in passing values from servlet to beans" New topic
Author

Problem in passing values from servlet to beans

chirag rana
Greenhorn

Joined: Aug 05, 2004
Posts: 5
How can I pass the values from servlet to beans?Please give the solution of this problem.Any suggestion will b appreciated.
Shawn Clark
Greenhorn

Joined: Aug 03, 2004
Posts: 7
You need to pass them as parameters to the bean remote methods. A lot of this depends on how you are designing your servlets and beans. You could make it so that you have setter and getter methods in your bean or you can do it as one method that loads whatever values you want the bean to have.

The first step is creating an RMI connection between the servlet and bean. Once that is established you can run any remote methods on the bean as if the bean was a local object. One thing you have to remember is that any objects you pass between the servlet and bean will need to be serializable.

--
Shawn
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

"Chirag"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it

here.

Thanks! and welcome to the JavaRanch!

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Gil Li
Greenhorn

Joined: May 27, 2004
Posts: 15
edr


Regards,<br /> <br />GILLI
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in passing values from servlet to beans