核心配置文件详解
struts-config.xml是Struts的主要配置文件,在该文件中,可以配置数据源、form-bean、action和plug-in(插件)和资源文件的信息。Struts-config.xml的每个部分的配置规范主要由该xml文件所使用的DTD文件决定。所使用的DTD版本在文件头部分,所以看DTD是了解该配置文件的最好起点。不同的版本所定义的元素和属性不同。 Struts-config.xml文件中的参数是次序相关的,所以需要将子元素按正确的顺序放置。其文件主要结构如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration
1.2//EN" "doc.guandang.net;
<data-sources>
<data-source>
</data-source>
</data-sources>
<form-beans>
<form-bean / >
</form-beans>
<global-forwards>
<forward / >
</global-forwards>
<action-mappings>
<action / >
</action-mappings>
<controller / >
<message-resources / >
<plug-in />
</struts-config>
struts1.2 config.xml配置_计算机软件及应用_IT/计算机_专业资料。struts1.2 struts-config.xml配置讲解 配置元素的说明关键字:Struts struts-config.xml 配置 ...
<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "...
struts1.2 配置详细 收藏 struts 配置文件 web.xml 是 web 应用的发布描述文件。。。 struts-config.xml 是 struts 应用专有的配置文件,可以根据需要给这个配置...
没有和jsp表单域对应 Struts-config.xml:里面的配置问题 <-深入 struts 配置文件-> 1.web.xml: <load-on-startup> 在 servlet 的配置当中,<load-on-start...
<?xml version="1.0〃 encoding="UTF-8〃?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http...
45页 免费 struts-config.xml 6页 免费 struts1.2配置详细 5页 免费 Struts-config.xml 6页 1财富值 Struts+Spring+Hibernate整... 16页 免费...
初始化 Struts 框架的总控制器 ActionServlet 是一个 Servlet,它在 web.xml 中配置成自劢启 劢的 servlet,在启劢时总控制器会读取配置文件 struts-config.xml ...
Struts-config.xml所有元素的简单介绍Struts-config.xml所有元素的简单介绍隐藏>...8. plugin-in 元素 配置 Struts 的插件,属性如下: 1. className:指定的 ...
SSH(Struts1+Spring+Hibernate)配置开发总结_IT/计算机_专业资料。一份非常详细...下面以注册功能为例对环境测试: 双击打开“struts-config.xml”文件, 打开“...
struts1.2配置详细struts1.2配置详细隐藏>> struts1.2 配置详细 收藏 struts 配置文件 web.xml 是 web 应用的发布描述文件。。。 struts-config.xml 是 ...
热门文档