Sorry, I haven't used Tiles (yet), so I cannot help you. Nevertheless, I note an increasing number of Tiles questions on this list over the past year. Isn't it about time Apache created a tiles-user list?
Mark -----Original Message----- From: Heligon Sandra [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 11:21 AM To: '[EMAIL PROTECTED]' Subject: RequestProcessor with test conditions Importance: High I have defined a subClass of TilesRequestProcessor in order to test before each request if the user is authenticated. Here is my code public boolean processPreprocess(HttpServletRequest request, HttpServletResponse response) { // Get the session object HttpSession session = request.getSession(); // Test if the request is a login request String path = processPath(request, response); if ( !path.equals((String) "/login") ) { User user = (User)session.getAttribute(Constants.s_USER_KEY); if ( user != null ) { // the user is not authenticated processForwardConfig(request, response, moduleConfig.findForwardConfig("login")); return false; } return true; } } When the user is not authenticated i would like to display error on the current page and not systematically forward it to the login page, how is it possible ? I can not use _mapping.getInput() function and ActionErrors object like in the Action class. What can I do ? Thanks Sandra --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]