aspose file tools*
The moose likes Servlets and the fly likes Accessing servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Accessing servlet" Watch "Accessing servlet" New topic
Author

Accessing servlet

Rajaguru Ramalingam
Greenhorn

Joined: Apr 12, 2004
Posts: 11
How can i access a servlet which is in different servletcontext or webapplication? can anyone explain me the process?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Access it from where?
A browser?
If so, a simple hyperlink (with a fully qualified URL) will do it.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Rajaguru Ramalingam
Greenhorn

Joined: Apr 12, 2004
Posts: 11
How can i access a servlet from another servlet which is part of another web application or servlet context....?
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
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

Joined: Dec 11, 2004
Posts: 13410

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

Joined: Mar 19, 2002
Posts: 405
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing servlet
 
Similar Threads
usebean problem newbie
my servlet says its unavailable in IE
server-side sorting of tables
Midlets and Database
How can you reload the servlet