This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing servlet

 
Rajaguru Ramalingam
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i access a servlet which is in different servletcontext or webapplication? can anyone explain me the process?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Access it from where?
A browser?
If so, a simple hyperlink (with a fully qualified URL) will do it.
 
Rajaguru Ramalingam
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i access a servlet from another servlet which is part of another web application or servlet context....?
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rajaguru Ramalingam:
How can i access a servlet from another servlet which is part of another web application or servlet context....?


You can do it with JSTL in your JSP. Couldn't think of anyother.

Neither httpServletResponse.sendRedirect() works, nor these requestDispatcher.include()
requestDispatcher.forward()
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rajaguru Ramalingam:
How can i access a servlet from another servlet which is part of another web application or servlet context....?


You're still not asking a clear question.
Maybe if you tell us what you're trying to do it would help.

-Ben
 
Craig Jackson
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure if this is the answer to the question
How can i access a servlet which is in different servletcontext or webapplication? can anyone explain me the process?


But the method from the ServletContext interface will allow you to return the servletcontext from another web application.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic