Discussion Locked

calling a servlet which is in different war same server

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

i have two servlets which are in different wars of tomcat webapp folder.
Iam using request dispatcher's include and forward methods to call the servlet which is in another war.
But it is not working. can any one help me.give me samples.
Thank u in advance....

1 reply

by lyun

I guess You are using request.getRequestDispatcher, which takes an url argument that must begin with a "/" and represents a path within the !!current servlet context!!. IMO try response.sendRedirect instead.

This discussion is closed to new replies.