This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread 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

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.

I agree. Here's the link:
subject: call servlet from simple java file.
It's not a secret anymore!