struts-config.xml:<action-mappings>
<action path="/index"
type="org.apache.struts.actions.ForwardAction"
parameter="index-definition">
</action>
</action-mappings>tiles-defs.xml:<tiles-definitions>
<definition name="index-definition" path="/layout.jsp">
<put name="sidebar" value="sidebar.jsp" />
<put name="header" value="header.jsp" />
<put name="content" value="indexContent.jsp" />
<put name="footer" value="footer.jsp" />
</definition>
</tiles-definitions>通过action调用tiles组件时出现如下问题:Path index-definition does not start with a "/" character请教解决过这个问题的人!谢谢~
<action path="/index"
type="org.apache.struts.actions.ForwardAction"
parameter="index-definition">
</action>
</action-mappings>tiles-defs.xml:<tiles-definitions>
<definition name="index-definition" path="/layout.jsp">
<put name="sidebar" value="sidebar.jsp" />
<put name="header" value="header.jsp" />
<put name="content" value="indexContent.jsp" />
<put name="footer" value="footer.jsp" />
</definition>
</tiles-definitions>通过action调用tiles组件时出现如下问题:Path index-definition does not start with a "/" character请教解决过这个问题的人!谢谢~
解决方案 »
- spring注入问题
- 请教:Hibernate Session关闭的问题
- struts2遇到一个问题
- spring问题:No request handling method with name 'list' in class .......
- Connection PreparedStatement 无法取得数据
- 请教各位大侠XFire问题?
- hibernate sql 问题
- xml数据传输问题
- 求用poi提取word,ppt,或excel 文本内容的例子
- 各位老兄:哪又介绍java以及相关javascript,jsp,ejb,等好点的综述性的电子版资料或,我毕业论文要用 :) 谢谢!!!
- struts2+hibernate问题
- 引入项目的问题,
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass">
<value>org.springframework.web.servlet.view.tiles.TilesJstlView</value>
</property >
</bean><bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles.TilesConfigurer">
<property name="definitions">
<list>
<value>/WEB-INF/conf/tiles/tiles-base.xml</value>
</list>
</property>
</bean>
里也需要再对/index进行定义,就是完成/index的界面填装