使用 siteMesh Struts2 Tomcat 6 排除页面时出现问题
我在 Apache-Tomcat 6.0.29 中使用 Struts2.2.1.1 和 sitemesh 2.4.1。 它工作正常,但我无法从 siteMesh 中排除文件。
我的装饰器位于 WebContent/jsp/decorators 中,但我想排除文件 WebContent/jsp/forms/Authentication.jsp。我尝试使用默认dir =“/jsp/decorators”的decorators.xml:
<excludes>
<pattern>../forms/Authentication.jsp</pattern>
</excludes>
<decorator name="main" page="layout.jsp">
<pattern>/*</pattern>
</decorator>
我还尝试更改模式标记以使用/jsp/forms/Authentication.jsp,但也不起作用。有人能给我一些正确方向的指示吗?多谢。
胡安·大卫
I'm using Struts2.2.1.1 with sitemesh 2.4.1 in Apache-Tomcat 6.0.29.
It works fine, but i can't exclude a file from siteMesh.
I Have My decorators in WebContent/jsp/decorators but i want to exclude the file WebContent/jsp/forms/Authentication.jsp. I tried using this decorators.xml with default dir = "/jsp/decorators":
<excludes>
<pattern>../forms/Authentication.jsp</pattern>
</excludes>
<decorator name="main" page="layout.jsp">
<pattern>/*</pattern>
</decorator>
I also tried to change pattern tag to use /jsp/forms/Authentication.jsp and didn't work either. Could anyone give me some pointers in the right direction? thanks a lot.
Juan David
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
除了您所拥有的之外,您还需要在
sitemesh.xml
文件中配置excludes
,如下所示:-decorator.xml
sitemesh.xml
In addition to what you have, you need to configure the
excludes
in yoursitemesh.xml
file, like this:-decorator.xml
sitemesh.xml