Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 12687 invoked from network); 8 Feb 2003 16:55:21 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 8 Feb 2003 16:55:21 -0000 Received: (qmail 4304 invoked by uid 97); 8 Feb 2003 16:56:53 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@nagoya.betaversion.org Received: (qmail 4297 invoked from network); 8 Feb 2003 16:56:53 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 8 Feb 2003 16:56:53 -0000 Received: (qmail 10613 invoked by uid 500); 8 Feb 2003 16:55:01 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 10596 invoked from network); 8 Feb 2003 16:55:00 -0000 Received: from frgw.ucpag.com (62.99.211.36) by daedalus.apache.org with SMTP; 8 Feb 2003 16:55:00 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Extending the RequestProcessor class Date: Sat, 8 Feb 2003 17:55:01 +0100 Message-ID: <8FD16F6B8AC4B6499BE151D339AEEFD6010CE31B@vie-dc1.vienna.ucpag.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Extending the RequestProcessor class Thread-Index: AcLPkXzsB+facshfS6SXoSMCS7J5TwAACWZg From: =?iso-8859-1?Q?J=F6rg_Maurer?= To: "Struts Users Mailing List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Don't want to be that a wacky answer, but I read the source - only free hotspot for myself newby-level seemed to be (quoting org.apache.struts.action.RequestProcessor): /** * General-purpose preprocessing hook that can be overridden as required * by subclasses. Return true if you want standard processing * to continue, or false if the response has already been * completed. The default implementation does nothing. * * @param request The servlet request we are processing * @param response The servlet response we are creating */ protected boolean processPreprocess(HttpServletRequest request, HttpServletResponse response) { return (true); } ...where myself subclassing had put sth like sample from book "Programming Struts" : protected boolean processPreprocess( HttpServletRequest request, HttpServletResponse response){ HttpSession userSession =3D request.getSession(false); // Check to see if there's a session for the user that wasn't just created (or if he didn=B4t logged out - ? does session invalidate on his browser as well ?) UserContainer uc =3D (UserContainer)userSession.getAttribute(IAppConstants.USER_CONTAINER_KEY ); if ( uc =3D=3D null || userSession =3D=3D null || = userSession.isNew()){ //continueProcessing =3D false; try{ userSession.invalidate(); userSession =3D request.getSession(true);=20 ApplicationContainer ac =3D (ApplicationContainer)userSession.getServletContext().getAttribute(IAppC onstants.APPLICATION_CONTAINER_KEY); userSession.setAttribute(IAppConstants.USER_CONTAINER_KEY, new UserContainer(ac)); response.sendRedirect( "/index.jsp" ); return false; }catch( Exception ex ){ ex.printStackTrace(); } } return true; } -----Original Message----- From: John D. Dubchak [mailto:jdubchak@qwest.net] Sent: Samstag, 08. Februar 2003 18:00 To: struts-user@jakarta.apache.org Subject: Extending the RequestProcessor class Hi, I've been searching through the documentation to find information on extending=20 the RequestProcessor class but can't seem to find it. Can someone point me=20 in the right direction? Thanks in advance, John --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org