• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

call an action from another module in getRequestDispatcher()?

Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have this application that will be using different modules for the different funtionalities of the program (maintenance, products, customers).

In my custom RequestProcessor (used by all modules), i used the processProcess to check if a session exists. If there is no session, it calls to redirect to the login page.

This works fine if im not inside a module, but when i am inside one, such as the maintenance module and the session expires (inactivity). It cannot redirect me to the login page. It seems that it is looking for Login.jsp inside the maintenance module.

So my question is, can getRequestDispatcher() call a page/action from some other module? If yes, how? Or are there any alternatives to do this?

attached is my processPreprocess code

[ November 09, 2008: Message edited by: DN Debed ]
A "dutch baby" is not a baby. But this tiny ad is baby sized:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    Bookmark Topic Watch Topic
  • New Topic