i've created this interceptor, does spmeone know why it doesn't work? package bean;
import com.opensymphony.xwork2.ActionInvocation; import com.opensymphony.xwork2.interceptor.Interceptor; import com.opensymphony.xwork2.Action; import java.util.*; public class filtro implements Interceptor { public void destroy() { } public void init() { } public String intercept( ActionInvocation actionInvocation ) throws Exception{ Map session = actionInvocation.getInvocationContext().getSession(); utente user = (utente)session.get("autenticato"); if (user != null) { System.out.println("condizone if"); return Action.ERROR; } else { System.out.println("condizione else"); return actionInvocation.invoke(); } } } in document struts.xml there is <interceptors> <interceptor name="filtro" class="action.bean.filtro"/> </interceptors> ...... <global result error.... <action ....> <intercpetor-ref name="filtro"> </action> -- View this message in context: http://www.nabble.com/interceptor-tp22524102p22524102.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org