File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes calling a servlet from a class 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 "calling a servlet from a class" Watch "calling a servlet from a class" New topic

calling a servlet from a class

Ste Lamb

Joined: Feb 05, 2003
Posts: 14
I want to invoke a servlet from a java class which will allow me to upload files onto the server. Firstly is this possible? If so, can anyone ponit me in the direction of where to start looking as currently I seem to be going around in circles... Any help much appreciated.
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1141

Hi Steve,
Yes, it is definitely possible to upload a file to the server from a client java class using a servlet.
I think the following Web sites may be helpful (assuming you don't already know about them):
Hope this helps.
Good Luck,
I agree. Here's the link:
subject: calling a servlet from a class
It's not a secret anymore!