John

You don't need to subclass ActionServlet all you need to do is tell the
controller which class to use to override the RequestProcessor. This is
done by adding a line into your struts-config.xml as follows

<controller processorClass="foo.bar.RequestProcessor"/>

where foo.bar.RequestProcessor is the name of your subclass of
RequestProcessor

DRAW

-----Original Message-----
From: John Reid [mailto:[EMAIL PROTECTED]] 
Sent: 01 May 2002 11:10
To: Struts Users Mailing List
Subject: Struts 1.1 RequestProcessor subclassing

Hi Guys

I am trying to override requestPreprocess to do some authentication
checking. I see that the RequestProcessor is held in a field in the
ActionServlet. What is the correct way to change the RequestProcessor
instance? I have tried subclassing the ActionServlet and setting the
field
to an instance of my RequestProcessor but that didn't seem to work. Any
suggestions?

John

John Reid
----------------
OpenConnect (Ireland) Ltd
+44 (0)2893 329 321
www.openconnect.co.uk
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 19/04/2002


--
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]>

Reply via email to