wood burning stoves 2.0*
The moose likes Servlets and the fly likes call servlet from simple java file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "call servlet from simple java file." Watch "call servlet from simple java file." New topic

call servlet from simple java file.

Chandra Mohan
Ranch Hand

Joined: Oct 06, 2003
Posts: 62
How to call the servlet from simple java file...??

Thanks and Regards
Chandra Mohan
Padmaja Godbole

Joined: May 10, 2003
Posts: 14
We can open a URL connection on servlet to call.

Padmaja Godbole<br />---------------------<br />SCJP2
Ken Boyd
Ranch Hand

Joined: Dec 10, 2003
Posts: 329
what you will do with that..if your java class in same directory as your servlet you can invoke servlet as java class. You can invoke other methods apart from doGet(httpreq,httpres) & other HTTP related methods.
Hope this help.

Consider Paul's rocket mass heater.
subject: call servlet from simple java file.
Similar Threads
Connecting to the webserver from simple java program with main method
How to call servlet do post method from a pojo
How to call a build.xml
Java Servlets
Calling .js file from Java