Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Servlets and the fly likes calling servlet from java class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

calling servlet from java class

sujit menon
Greenhorn

Joined: Nov 12, 2005
Posts: 7
hi guys

i have a java class in one war which needs to submit to a servlet present in another war in tomcat. both are in different applications.

i need to call/submit to the servlet.......

how can i submit to this servlet?
i have tried urlconnection but that is not working....its not throwing any exceptions neither any response is returned from the servlet.there is nothing in the outputstream when i print it.the response is blank.

please help me on this one....
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Isn't this just a continuation of this thread:
http://www.coderanch.com/t/206863/sockets/java/url-connection-https
?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calling servlet from java class