我按http://wiki.sitemesh.org/wiki/display/sitemesh/Start+Using+SiteMesh+in+10+Minutes所述创建了sitemesh演示应用。 我在日食氧气中运行jboss eap 6.4。该应用程序出现没有错误。我可以访问我放在WebContent文件夹中的index.html页面。但是两个sitemesh页面(menu.jsp和hours.jsp)产生404错误。控制台上没有记录任何错误。
我在localhost上遇到404错误:8080 / mesh / menu.jsp
我怀疑我有一些配置错误,但我看不到任何拼写错误。有没有办法获得更多日志记录或任何指出问题的方法?
的web.xml
<?xml version="1.0" encoding="UTF-8"?>
<decorators defaultdir="/decorators">
<decorator name="basic-theme" page="basic-theme.jsp">
<pattern>/data/*</pattern>
</decorator>
</decorators>
decorators.xml
{{1}}
文件布局
答案 0 :(得分:0)
我的问题是我没有将浏览器指向localhost:8080 / mesh / 数据 /menu.jsp。
像我之前怀疑的一样。我的配置/理解错误。