Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes Calling a Java class file from a servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Calling a Java class file from a servlet" Watch "Calling a Java class file from a servlet" New topic
Author

Calling a Java class file from a servlet

Betsy Camel
Ranch Hand

Joined: Oct 02, 2003
Posts: 119
I am developing an application in which a servlet has to call a Java class.
Is this possible...

i tried using a request dispatcher, but this can be used only to call a servlet. Please help
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I guess it depends on what you mean by "Call another Java Class".
Servlets routinely instanciate and call methods in external classes called Javabeans.

Can you explain more fully what it is that you're trying to do?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling a Java class file from a servlet
 
Similar Threads
calling servlets from normal java class
How to call servlet do post method from a pojo
How to schedule a job which will call a servlet?
Randomly generate a string of number?
Calling .js file from Java