getting error “There is no Action mapped for namespace / and action name LoginAction” in struts2
问题 My struts.xml is under 'src' and action class is in a package 'login'. Here's my struts.xml: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <package name="example" extends="json-default"> <action name="login" class="login.LoginAction"> <result type="json"/> </action> </package> </struts> My jsp(It is under /LoginEx/WebContent/Login.jsp): <%@ page language