File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes How to call java class from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to call java class from servlet" Watch "How to call java class from servlet" New topic

How to call java class from servlet

Rupa Katkar
Ranch Hand

Joined: Aug 12, 2009
Posts: 35
Now i am working in servlet, I want to send some data to java class
& there i want to process that data.
How i will do this
Pl. reply me urgently........
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39542
Can't you instantiate an object of that class, and call its methods to pass in whatever data it needs?

Ping & DNS - updated with new look and Ping home screen widget
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60046

Rupa Katkar wrote:Pl. reply me urgently........

Please read this.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
David Newton

Joined: Sep 29, 2008
Posts: 12617

And this.
I agree. Here's the link:
subject: How to call java class from servlet
Similar Threads
Calling JSP from Java class
Servlet and I/O
Calling jsp from java class and posting data
algorithms, data structures
Start up class in tomcat