运行Struts 1.3.8
hdiv-config.xml
<hdiv:config excludedExtensions="css,png,js,gif,jpeg"
protectedExtensions=".*.do" maxPagesPerSession="20" confidentiality="true" avoidCookiesIntegrity="true">
<hdiv:startPages>/loginForm.do</hdiv:startPages>
<hdiv:startPages>/login.do</hdiv:startPages>
<hdiv:startPages>/logout.do</hdiv:startPages>
<hdiv:startPages>/home.do</hdiv:startPages>
<hdiv:startPages>/pages/BillDischarge/NewPrepaidBill.do</hdiv:startPages>
<hdiv:startParameters>org.apache.struts.action.TOKEN,org.apache.struts.taglib.html.TOKEN</hdiv:startParameters>
</hdiv:config>
<hdiv:editableValidations>
<hdiv:validationRule url=".*"/>
</hdiv:editableValidations>`
除了在startPages下定义的页面之外,每个页面都将我重定向到“未经授权的”错误页。
日志:2016-10-19 14:42:10 [@] INFO Logger: HDIV_PARAMETER_DOES_NOT_EXIST;/pages/Common/PatientSearch.do;_HDIV_STATE_;;;0:0:0:0:0:0:0:1;0:0:0:0:0:0:0:1;anonymous;
帮助?
发布于 2016-12-01 17:28:00
您的链接和表单似乎不是由Hdiv处理的。
检查标记库的配置。应用程序必须加载Hdiv文件,而不是Struts的文件。
查看这个示例应用程序,以获得一个工作的web.xml文件:https://github.com/hdiv/hdiv-struts-examples/blob/master/src/main/webapp/WEB-INF/web.xml#L122
https://stackoverflow.com/questions/40129709
复制相似问题