Using strtus2, when action jumps, it will automatically jump to the WEB-INF/content directory. Don't know what went wrong.
I put all the files under webroot,
Here are some of my files
web.xml
contextConfigLocation classpath:applicationContext.xml org.springframework.web.context.ContextLoaderListener struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 /* index.jsp
applicationContext.xml
Page code
The configuration path should add WEB-INF
It has been solved. It turns out that I did not add "/" in action-->location.