首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

Struts开发web应用的配置文件struts-config.xml

2012-01-21 
求助:Struts开发web应用的配置文件struts-config.xml请问一下:struts-config.xml文件中的action-mappings

求助:Struts开发web应用的配置文件struts-config.xml
请问一下:

struts-config.xml文件中的
<action-mappings>
<action       path= "/index "
                    type= "org.apache.struts.actions.ForwardAction "
                    parameter= "index-definition ">
 
</action>
</action-mappings>

这其中action中的parameter参数的意义是什么?

谢谢

[解决办法]
指的是Tiles中定义的组件名
[解决办法]
definition元素的name属性指定Tiles组件的名字,path属性指定Tiles组件使用的模板,definition元素的put子元素用于向模板中插入具体的网页内容。
http://macrochen.blogdriver.com/macrochen/517403.html

热点排行