You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Gianluca Musella <gi...@bsc.it> on 2009/02/10 17:13:17 UTC

interceptors does not work

This is the interceptor declaration in my struts.xml:

        <interceptors>
            <interceptor name="profilerInterceptor" class="org.almayer.web.interceptor.ProfilerInterceptor"/>
            <interceptor name="authenticationInterceptor" class="org.almayer.web.interceptor.AuthenticationInterceptor"/>

            <interceptor-stack name="almayerStack">
	            <interceptor-ref name="scopedModelDriven">
	                <param name="className">org.almayer.web.AlmayerModel</param>
	                <param name="scope">session</param>
	            </interceptor-ref>
				<interceptor-ref name="profilerInterceptor"/>
                <interceptor-ref name="authenticationInterceptor"/>
                <interceptor-ref name="defaultStack"/>
            </interceptor-stack>
        </interceptors>
        
        <default-interceptor-ref name="almayerStack"/>

And this is my first action declaration:

        <action name="private/home" class="org.almayer.web.action.HomeAction">        
            <interceptor-ref name="almayerStack"/>
            <result name="success">home.jsp</result>
        </action>

Why my inteceptors does not fire? I've not any errors, but breakpoints not hitted in the interceptor classes confirm that they aren't fired.

Can someone help me please?

Thank yoGianluca Musella 
Delivery Manager
 E-Mail: gianluca.musella@bsc.it
 Mobile: +39 348 1204961

BSC Consulting S.p.A.
via Mentore Maggini 50 
00143 Roma
 Tel.  +39 06.51957867
 Fax. +39 06.51957870 
 http://www.bsc.it
P Please consider the environment before printing  this email     
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file allegato/i, sono da considerarsi strettamente riservate. Il loro utilizzo è consentito  esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceveste questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di  procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema; costituisce comportamento contrario ai principi dettati dal Dlgs. 196/2003  il  trattenere il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse.
The information in this e-mail and in any attachments is confidential and may be privileged. If you aren't the intended recipient, please destroy this message, delete any copies held on your systems and notify the sender immediately. You shouldn't retain, copy or use this e-mail for any purpose, nor disclose all or any part of its content to any other person.  
 
 

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