Hi All, I have to access the servlet in the other context root in different server(not in the same Server/Container).Is it possible..? Please give me an idea to solve this issue. Thnaks in advance.
If it is running in the same cluster, you may still be able to use getServletContext().getContext("name of other context") to get a reference to the Servlet, but you may also need to enable this in security settings.... somewhere. (Sorry, I've done it, but I'm drawing a blank) I'm not sure it's ever worth the effort though, and it's easier to just include the servlet code in your application. Dave [ December 15, 2003: Message edited by: David O'Meara ]
Mani Narain
Greenhorn
Joined: Dec 14, 2003
Posts: 4
posted
0
If you want to access a servlet which is in a different sever,u could use sendRedirect() method...
Karan V Praba
Ranch Hand
Joined: Oct 31, 2002
Posts: 41
posted
0
Hi, I don't want to use redirect method since all my response has to go from my first servlet.