... 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 <[email protected]> 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: [email protected] 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>

