<?xml version="1.0" encoding="UTF-8"?>
<xml-body>
<decorators defaultdir="/decorators">
<decorator name="main" page="main.jsp">
<pattern>/w*</pattern>
</decorator>
</decorators>
<decorator name="sidebar" page="sidebar.jsp" />
</xml-body>
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <filter>
<filter-name>sitemesh</filter-name>
<filter-class>
com.opensymphony.module.sitemesh.filter.PageFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>sitemesh</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping> <welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list></web-app>
文件放置大概图
webroot
|-decorators
|-main.jsp
|-sidebar.jsp
|-webindex
|-index.jsp
|-web-info
|-decorators.xml
|-web.xml
-index.jsphttp://localhost:8088/Decorate/webindex/index.jsp Path main.jsp does not start with a "/" character
这个原因主要是怎么产生 的 ,请详细说明一下 谢谢了
解决方案 »
- websphere6.0下部署war包,异常javax.naming.NameNotFoundException: Namenotfound java:
- 怎样学好SSH框架
- jsp页面控件
- 有关InterceptorsFactory的一个无法解决的问题
- 请教关于继承中的数据与方法成员的问题:
- Caused by: java.sql.SQLException: 数据大小超出此类型的最大值的问题?
- 我想得到一个局部变量的变量名,具体来说应该怎么做啊?
- 这个必须得问下
- 关于环境变量的问题。
- 我越来越糊涂了!有人能帮帮我吗,一些基本的概念!
- 一个项目Demo里面需要包括哪些东西。。?
- 关于hibernate的问题
<xml-body> <decorators defaultdir="/decorators">
<decorator name="main" page="main.jsp">
<pattern>/w*</pattern>
</decorator>
</decorators>
<decorator name="sidebar" page="sidebar.jsp" />
</xml-body>
我找到错误的地方了
这个不知道是怎么冒出来的,害的我快找死