Hi youssef, You can override RequestProcessor instead. The required steps are 1) in struts-config.xml <controller> <set-property property="processorClass" value="your controller class which extends RequestProcessor"/> </controller> 2) Create a Class wich extends RequestProcessor If you are using Tile Framework you have extend from TilesRequestProcessor 3) Then override method processPreprocess() and do your logic in that method
like public class ModReqProcessor extends TilesRequestProcessor { @Override protected boolean processPreprocess(HttpServletRequest request, HttpServletResponse response) { HttpSession session = request.getSession(false); // Check user object here // and return appropriate boolean variable // if user object present return true // otherwise forward to your error page using RequestDispatcher.forward() } } I hope this will help you ----- Original Message ----- From: Youssef A. Mohammed To: 'Struts Users Mailing List' Sent: Thursday, November 16, 2006 10:53 PM Subject: A Filter Action ! Folks; I want to set of action classes that should operate only when user object in the session. How can I add some filter action to forward to some page (action forward) and bypass the main action classes. Regards, Youssef A. Mohammed Ali Senior System Analyst Tel.: + (966 1) 472 2277 Ext. 226 Fax: + (966 1) 472 4772 P. O. Box: 55471 Riyadh, 11534, KSA