Any request that passes through the ActionServlet will continue to the RequestProcessor. Requests for a specific page will only pass through the ActionServlet if the page is generated or forwarded to by an Action.
So, in short, no, not all JSPs MUST be associated to an Action. It is just good design practice to arrange your JSPs so they are only accessible via an Action so you can better control when they can be viewed, ensure they are populated with the necessary info that Actions may provide to the view, and if you are depending on the RequestProcessor to preprocess the request before displaying the view. Jason -----Original Message----- From: Heligon Sandra [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 11:18 AM To: 'Struts Users Mailing List' Subject: RE: processPreprocess & ActionForward I am trying to do the same thing "Test authentication in processPreprocess method", but how can you be sure that the user will pass through the RequestProcessor ? Each JSP page must be associated to an action, isn't it ? -----Original Message----- From: Jason Rosen [mailto:[EMAIL PROTECTED]] Sent: 04 September 2002 19:05 To: 'Struts Users Mailing List' Subject: RE: processPreprocess & ActionForward You can use the processActionForward method of the RequestProcessor: processActionForward(request, response, (ActionForward) appConfig.findForwardConfig("myForward")); -----Original Message----- From: Chen, Dean (Zhun) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 9:51 AM To: 'Struts Users Mailing List' Subject: processPreprocess & ActionForward Is it possible to access the ActionForward object from processPreprocess? I'm trying to override processPreprocess to implement authentication. However, I want to specify the forward page via struts-config.xml instead of hard coding it. Chpt 9 of OReilly book on serverside said that's recommended but doesn't give an example. Any ideas? I searched the archive and found this http://www.mail-archive.com/struts-user@jakarta.apache.org/msg15542.html But this example extends ActionServlet. Thanks, Dean Chen -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>