File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes RequestDispatcher Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "RequestDispatcher Problem" Watch "RequestDispatcher Problem" New topic

RequestDispatcher Problem

Abhishek Asthana
Ranch Hand

Joined: Sep 08, 2004
Posts: 146
I am working on JBoss 3.2.1.
I have a module Validation which has a servlet

HttpSession session = request.getSession(true);
session.setAttribute("LoggerIdentity", loggerIdentity);
RequestDispatcher rd = request.getRequestDispatcher("../InformationSystem/ISController");
rd.forward(request, response);

This servlet calls another servlet ISController, in InformationSystem module.
But when I print rd it comes null.
Can anyone please tell me how to call the ISController .
Pavel Cherkashin
Ranch Hand

Joined: Mar 04, 2005
Posts: 47
quote from API:
see API Doucumentation:
The pathname specified may be relative, although it cannot extend outside the current servlet context. If the path begins with a "/" it is interpreted as relative to the current context root. This method returns null if the servlet container cannot return a RequestDispatcher.

Saying in other words - tell us at least the context root of your currently servlet. And then It will be moe easy to answer.

Pavel Cherkashin - <br />SCJP, SCWCD, SCDJWS, SCBCD, SCEA, ...<br />
I agree. Here's the link:
subject: RequestDispatcher Problem
jQuery in Action, 3rd edition