aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "call servlet from simple java file." Watch "call servlet from simple java file." New topic
Author

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
Greenhorn

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.


SCJP, SCWCD, SCBCD, SCJD, BB Java2 and JSP1.1
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: call servlet from simple java file.