• Post Reply Bookmark Topic Watch Topic
  • New Topic

receiving response  RSS feed

 
Vivian Ryder
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on a servlet that will send request to a foreign servlet until the first servlet receives the desired response from the second. What I need to know is how do I access the response sent by the second servlet to check whether it is the desired response. Do I use StringBuffer getRequestURL() method in the HttpServletRequest object that is passed to the doGet() method of the first servlet?
 
Jesus Angeles
Ranch Hand
Posts: 2069
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure what you are asking. But if you need to pass inform to the first servlet from the second servlet without calling the first servlet, then you can store information in the Request(if everything happens in 1 request), in Session(if happens in 1 session), or in other contexts like servlet, and application.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!