struts1.x框架核心配置
来源:互联网 发布:证券交易软件哪个好 编辑:程序博客网 时间:2024/05/23 16:41
web.xml文件:==========吕老师视频http://www.tudou.com/home/xuexi158=================
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
struts配置文件:==========吕老师视频http://www.tudou.com/home/xuexi158=================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<form-beans >
<form-bean name="blogForm" type="com.lg.struts.form.BlogForm" />
</form-beans>
<global-exceptions />
<global-forwards />
<action-mappings >
<action
attribute="blogForm"
name="blogForm"
path="/blogAdd"
scope="request"
type="com.lg.struts.action.BlogAddAction"
validate="false" >
<forward name="success" path="/blogList.do" />
<forward name="fail" path="/index.jsp" />
</action>
<action
attribute="blogForm"
name="blogForm"
path="/blogList"
scope="request"
type="com.lg.struts.action.BlogListAction"
validate="false">
<forward name="success" path="/blog_list.jsp" />
<forward name="fail" path="/index.jsp" />
</action>
</action-mappings>
<message-resources parameter="com.lg.struts.ApplicationResources" />
</struts-config>
- struts1.x框架核心配置
- java-struts1.x框架-核心配置1
- Struts1.x框架基本原理
- struts1.x验证框架(转)
- Struts1.x 中的 Validate 框架
- Struts1.x的验证框架
- struts1.x上传文件配置
- 应用struts1.x框架的session管理
- java-struts1.x框架-标签笔记1
- Struts1.x的validator框架使用
- struts1.x环境配置及登陆例子
- struts1.x 标签库的配置
- struts1.x struts-config.xml配置详解
- struts1.x struts-config.xml配置详解
- Struts1.x原理图--时序图,xml配置
- struts1.x+ibatis+spring配置整合
- Struts1框架学习(二)--struts1-config.xml的配置
- struts1.x
- 名词解释-【SOAP】
- 名词解释-【SOAP】
- 名词解释-【SOAP】
- JSP九大内置对象及详细信息
- Jquery实现动态修改表格
- struts1.x框架核心配置
- DataGridView-添加一列为时间,加入时间控件Calender
- 最长升序列求解(OJ 1093)
- oracle 10g 使用REGEXP_SUBSTR 分拆字符串
- 信息很多,但有效信息不多
- 原、反、补、移
- 利用DirectShow播放标准格式文件范例
- Java-过滤器
- VS2005 + AutoCAD2008, 无法调试!