Problems with SSH framework
習慣沉默
習慣沉默 2017-05-17 10:00:43
0
2
442

To add functions to a system, use ajax to access the methods in Action in js. Use the annotation and add @ParentPackage("root") to the corresponding Action. When accessing, the page will not report an error, and the background will not appear. Data, breakpoint discovery does not use the corresponding query method. Remove the @ParentPackage("root") annotation in the Action. When accessing, the frontend will report url404, but the background query method will be used to find the database data.
I would like to ask all the masters, have you ever encountered such a situation? Struts2 seems to require root. Please give me a solution. I have been working on it for a long time. Thank you in advance!

習慣沉默
習慣沉默

reply all(2)
習慣沉默

I found the problem, it’s a permissions issue. I didn’t figure out the permissions part before, I was stupid

伊谢尔伦

Never used @ParentPackage("root"). . . The front-end 404 and the back-end can still pass, but the configuration of the action return page is wrong. Paste the struts.xml.

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!