struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john lee <sh_thorn_b...@yahoo.com>
Subject return Action.LoginAction;
Date Wed, 15 May 2013 21:49:26 GMT


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 {
......

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