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 REST with Spring (video course) this week in the Spring 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: 42959
Can't you instantiate an object of that class, and call its methods to pass in whatever data it needs?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63540

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

Please read this.

[Asking smart questions] [About Bear] [Books by Bear]
David Newton

Joined: Sep 29, 2008
Posts: 12617

And this.
It is sorta covered in the JavaRanch Style Guide.
subject: How to call java class from servlet
It's not a secret anymore!