wood burning stoves
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
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

calling servlet from java class

sujit menon

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

Joined: Dec 11, 2004
Posts: 13410

Isn't this just a continuation of this thread:

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
It's not a secret anymore!