This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: call servlet from simple java file.