File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes calling bean from a servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "calling bean from a servlet" Watch "calling bean from a servlet" New topic
Author

calling bean from a servlet

Nidhi Singhal
Ranch Hand

Joined: Sep 19, 2004
Posts: 89
hi,
i have servlets and some bean classes containing business logic. i want to know how to call beans from a servlet.
thanks..
Nidhi
Sandeep Deshmukh
Greenhorn

Joined: Dec 06, 2004
Posts: 16
Hi nidhi

To use a bean include that bean package in your classes directory, import that package into servlet and you can use the bean classes as you do in jsp.

Sandeep


Java and Oracle Programmer
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
It is the same as you use beans in your simple normal java class.
Nidhi Singhal
Ranch Hand

Joined: Sep 19, 2004
Posts: 89
thanks..
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: calling bean from a servlet
 
Similar Threads
How to call servlet from JSF ?
How to call servlet from JSF ?
How do i invoke a bean from a servlet?
how to trigger a servlet from JSF
Can we convert a Servlet into a Bean