• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

call servlet from simple java file.

 
Chandra Mohan
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to call the servlet from simple java file...??
 
Padmaja Godbole
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We can open a URL connection on servlet to call.
 
Ken Boyd
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic