File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to call bean from the servlet

 
Sharmila Abkari
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 134
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Sharmila Abkari
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sharmila thats elemntary java thing....
MyBean mb = new myBean() //instantiated a MyBean typeobject
now mb.beanMethod()
I hope you this
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic