struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: How do i redirect to another action in filter?
Date Sat, 17 Sep 2011 01:17:30 GMT
Is there any particular reason for not using an interceptor? Is the perfect place to do such
------Mensaje original------
De: mohan rao
Responder a: Struts Users Mailing List
Asunto: How do i redirect to another action in filter?
Enviado: 16 Sep, 2011 11:50


    As per my requirement i'm overriding prepareandexecture filter. I'm
restricting the user from un accessable actions he might be book marked it
before. I don't want to this in interceptor. I want to decide it on filter
itself because i can reduce some processing. I tried with RequestDispatcher
to forward the request It's not working because request dispatcher can't
deal with action class can process only servlets. And even i tried with
ActionMapping setting all the values manually the action what i want to
execute but it's not working. 

ActionMapping actionMaping = new ActionMapping();
        actionMaping.getResult(); //take default
        execute.executeAction(httpReq, httpRes, actionMaping);

 Throw me some light regarding this. Thanks. 

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

Sent via BlackBerry from T-Mobile
View raw message