jQuery in Action, 2nd edition*
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 Android Security Essentials Live Lessons this week in the Android 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
 
Don't get me started about those stupid light bulbs.
 
subject: calling servlet from java class
 
Similar Threads
two web applications referring to a common jar
Invoking the spring webproject from gwt web application
Forward to JSP outside of war
Problem with AJAX
repetedly calling a servlet from another servlet