• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to call bean from the servlet

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic