[HTML]View plaincopyprint?
- 9:
- 10:
- 11: <body>
- 12: <s: Form Action = "login" method = "Post">
- 13: <s: textfield label = "username" name = "name"/>
- 14: <s: Password label = "password" name = "Age"/>
- 15: <s: Submit value = "Submit"/>
- Stacktrace:
- Org. Apache. Jasper. servlet. jspservletwrapper. handlejspexception (jspservletwrapper. Java: 510)
- Org. Apache. Jasper. servlet. jspservletwrapper. Service (jspservletwrapper. Java: 419)
- Org. Apache. Jasper. servlet. jspservlet. servicejspfile (jspservlet. Java: 313)
- Org. Apache. Jasper. servlet. jspservlet. Service (jspservlet. Java: 260)
- Javax. servlet. http. httpservlet. Service (httpservlet. Java: 717)
- Root Cause
The reason is that in the web. xml file
[HTML]View plaincopyprint?
- <Filter-mapping>
- <Filter-Name> struts2 </filter-Name>
- <URL-pattern>/* </url-pattern>
- </Filter-mapping>
The URL-pattern of <URL-pattern>/* </url-pattern> is changed to *. Action, which filters out all files except *. Action.