On 11/18/06, Youssef A. Mohammed <[EMAIL PROTECTED]> wrote:

Thank you but it seems that this method in never called in struts 1.3 that I
am using.

The default request processor class is ComposableRequestProcessor  which
happened to override the process method and it never calls
processPreproccessor.

Thus the solution could be to override the process method of
ComposableRequestProcessor   and do the hook, but I looking for much cleaner
solution.

Here's the chain config file for Struts 1.3.5

http://svn.apache.org/repos/asf/struts/struts1/tags/STRUTS_1_3_5/core/src/main/resources/org/apache/struts/chain/chain-config.xml

Which says the processPreprocess' method was replaced by:

                                    LookupCommand with
optional="true".  Multiple
                                    occurrences of this can easily be added, to
                                    support additional processing hooks at any
                                    point in the chain without modifying the
                                    standard definition.

Further down, I see:

       <!-- Look up optional preprocess command -->
       <lookup
               catalogName="struts"
               name="servlet-standard-preprocess"
               optional="true"/>

I haven't tried this, but it looks like you should add a command (or
chain of commands) named 'servlet-standard-preprocess', and it will be
executed.

--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to