can not access a member of with modifiers "public"

can not access a member of with modifiers "public"

If you get the following error in Struts2:
java.lang.IllegalAccessException: Class com.opensymphony.xwork2.DefaultActionInvocation can not access a member of class  com.xxxxxxxxAction with modifiers "public"


it's likely because your class com.xxxxxxxxAction is not public. You just need to add a public keyword in front of the class definition


public class com.xxxxxxxxAction {
}

你可能感兴趣的:(struts,Class,Access)