This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Struts and the fly likes call an action from another module in getRequestDispatcher()? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "call an action from another module in getRequestDispatcher()?" Watch "call an action from another module in getRequestDispatcher()?" New topic
Author

call an action from another module in getRequestDispatcher()?

DN Debed
Greenhorn

Joined: Nov 03, 2008
Posts: 10
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: call an action from another module in getRequestDispatcher()?
 
Similar Threads
how to redirect to other URL ?
problem in session tracking inside my request processor....
session invalid problem
redirect to other url from TilesRequestProcessor
how to get same session object in a multi page form processing.