Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

forward request using requestdispatcher for servlets across projects

 
prithvim
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi.
can anyone please tell me how to forward request to a servlet in iplanet Application Server from another servlet
Consider this scenario
there are two projects project1 and project2
project1 has servlet1
project2 has servlet2
servlet1 has to forward request to servlet2. i did it like this
getServletContext().getRequestDispatcher("Project2/servlet2").forward(request,response);
this is the error it gives
error: SERVLET-fileext_not_set: Extension of file not found, while displaying static content
that method works perfectly on Netscape Application Server
can any one give me a solution to this problem??
thanx in advance
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"prithvim",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic