struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hns <>
Subject Re: about current action name acsess
Date Sat, 01 Mar 2008 05:56:12 GMT

Thanks to you
and also thanks to kedar for great logic
but i dont know why postLoginURL remains empty in my case
so i have choose way of session it works fine right now but i dont know
about future problems of it
i have done like this

 Inside interceptor i wrote
  if (!isAuthenticated) {

String urlGoingTo = actionInvocation.getProxy().getNamespace()+"/"+
        	 session.put( "actionurl", urlGoingTo);

<action name="Login_*"  method="{1}" class="authentic.Login">
            <result name="input">/Login.jsp</result>
            <result name="cancel" type="redirect-action">Welcome</result>
            <result type="redirect-action">MainMenu</result>
            <result name="redirect"
            <interceptor-ref name="guest"/>

if(session.get("actionurl") != null && !session.get("actionurl").equals(""))
        		 return "redirect";
        	 return SUCCESS;

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

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

View raw message