• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RequestDispatcher Problem

 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am working on JBoss 3.2.1.
I have a module Validation which has a servlet SystemController.java
Code:

HttpSession session = request.getSession(true);
System.out.println(loggerIdentity);
//System.out.println(postedAt);
session.setAttribute("LoggerIdentity", loggerIdentity);
session.setAttribute("PostedAt",postedAt);
RequestDispatcher rd = request.getRequestDispatcher("../InformationSystem/ISController");
System.out.println(rd);
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 .
Abhishek.
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't destroy the earth! That's where I keep all my stuff! Including this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic