struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <davelnew...@gmail.com>
Subject Re: return Action.LoginAction;
Date Wed, 15 May 2013 21:58:31 GMT
...

That makes no sense; "Action" isn't a "global variable", and we don't know
what you're actually *trying* to return, so it's impossible to help.

Dave



On Wed, May 15, 2013 at 5:49 PM, john lee <sh_thorn_bird@yahoo.com> wrote:

>
>
> for struts 2,
>
>
>
>    i follow the example from the web to use 'Action.xxxxx'  (xxx is actual
> action name), but the compile report the following error
>
>
> cannot find symbol
> symbol  : variable Action
> location: class SecurityVerifySessionIntercepter
>       return Action.LoginAction;
>
> which library i should include to use the global variable of Action ?
>
> thanks in advance
>
> john
>
>
>
> import javax.servlet.http.HttpServletRequest;
> import javax.servlet.http.HttpServletResponse;
> import javax.servlet.http.HttpSession;
>
> import com.opensymphony.xwork2.ActionContext;
> import com.opensymphony.xwork2.ActionInvocation;
> import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
>
> import org.apache.struts2.interceptor.ServletRequestAware;
> import org.apache.struts2.interceptor.ServletResponseAware;
>
> import javax.servlet.http.Cookie;
> import com.opensymphony.xwork2.ActionSupport;
>
> public class SecurityVerifySessionIntercepter extends AbstractInterceptor
> implements ServletResponseAware, ServletRequestAware {
> ......
>
> }




-- 
e: davelnewton@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton <https://twitter.com/dave_newton>
b: Bucky Bits <http://buckybits.blogspot.com/>
g: davelnewton <https://github.com/davelnewton>
so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message