struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen, Dean (Zhun)" <Dean.C...@gs.com>
Subject RE: processPreprocess & ActionForward
Date Wed, 04 Sep 2002 17:14:58 GMT
This works great. Maybe it can be added to the OReilly book too.

Dean Chen

Dean Chen
Goldman Sachs & Co.
1 New York Plaza - 38th Floor, New York, NY  10004
(917) 343-8446
dean.chen@gs.com


-----Original Message-----
From: Jason Rosen [mailto:JRosen@yvimail.com]
Sent: Wednesday, September 04, 2002 1:05 PM
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:Dean.Chen@gs.com]
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:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message