Win a copy of Design for the Mind this week in the Design forum!
    Bookmark Topic Watch Topic
  • New Topic

calling servlet from java class

 
sujit menon
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic