java - Strtus2 jumps to WEB-INF/content
天蓬老师
天蓬老师 2017-07-03 11:43:28
0
2
936

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

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all (2)
Peter_Zhu

The configuration path should add WEB-INF

    滿天的星座

    It has been solved. It turns out that I did not add "/" in action-->location.

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!