aspose file tools*
The moose likes Servlets and the fly likes how to call bean from the servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to call bean from the servlet" Watch "how to call bean from the servlet" New topic
Author

how to call bean from the servlet

Sharmila Abkari
Greenhorn

Joined: Mar 29, 2001
Posts: 15
I was told to use Hash Tables to call beans from the Servlet, can someone pls tell me how to do that.
vaibhav punekar
Ranch Hand

Joined: Jan 20, 2001
Posts: 134
hi,
Sharmila
That depends on the server which you are using.Can you please elaborate what server you are using?Whatever it may be if you know where the classes are stored you create a "Bean" folder under classes folder .Put all your beans in "Beans" package.Import that package in your Servlet,instantiate the bean class and use the methods of the bean.
Is it cool?


VAIBHAV <BR>SCJP
Sharmila Abkari
Greenhorn

Joined: Mar 29, 2001
Posts: 15
I am using Web Sphere server, and Visual Age for Java, and i am unfamiliar with all this.
You were saying to instantiate bean, how to do that, please explain.
Thanks
Farooq Ali
Ranch Hand

Joined: Sep 30, 2000
Posts: 43
Sharmila thats elemntary java thing....
MyBean mb = new myBean() //instantiated a MyBean typeobject
now mb.beanMethod()
I hope you this
 
Don't get me started about those stupid light bulbs.
 
subject: how to call bean from the servlet