struts1.3
tianjun309
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
logic:notPresent
Generate the nested body content of this tag if the specified value is not present in this request. Depending on which attribute is specified, this tag checks the current request, and evaluates the nested body content of this tag only if the specified原创 2010-11-23 23:46:00 · 1523 阅读 · 0 评论 -
<bean:page>
Action中的excute写入request.setAttribute("testPage", pageTest);<!-- 在这里拿出tomcat容器中对HttpServletRequestWrapper的继承类 --> <bean:page id="testRequest" property="request" /> <%=testRequest...原创 2010-06-28 00:31:25 · 140 阅读 · 0 评论 -
DispatchAction用法示例
*action.javapackage com.test.action;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import org.apache.struts.action.ActionForm;import org.apach...原创 2010-12-23 16:18:26 · 182 阅读 · 0 评论 -
<bean:define>
action里面做处理。Test test = new Test(); test.setTest1("test1"); test.setTest2("test2"); request.setAttribute("temp", test); jsp里面拿 <!-- name:attribute里面的name ...原创 2010-07-06 21:46:34 · 218 阅读 · 0 评论 -
<bean:header>
主要是获取http头信息用的。 <bean:header id="userAgent" name="User-Agent"/> <bean:write name="userAgent"/>原创 2010-07-06 22:53:37 · 178 阅读 · 0 评论 -
<bean:include>
<!-- 这种情况下,会将test.txt内容输出到页面 --> <bean:include id="value" page="/jsp/test.txt"/> <bean:write name="value"/>原创 2010-07-06 23:35:05 · 145 阅读 · 0 评论 -
MVC_notes
(1)MVC模式的目的是实现Web系统的职能分工。(2)Model层实现系统中的业务逻辑;View层用于与用户的交互,通常用JSP来实现;(3)Controller层是Model与View之间沟通的桥梁,它可以分派用户的请求并选择恰当的视图以用于显示,同时它也可以解释用户的输入并将它们映射为模型层可执行的操作。 ...原创 2010-10-06 18:42:46 · 110 阅读 · 0 评论 -
Struts实现的MVC框架流程图
Struts实现的MVC框架流程图原创 2010-10-06 19:23:50 · 300 阅读 · 0 评论 -
Struts 的工作流程_ActionServlet 流程图 时序图
Struts 的工作流程(1)对于采用Struts框架的Web应用,在Web应用启动时就会加载并初始化ActionServlet(2) ActionServlet从struts-config.xml 文件中读取配置信息,把它们存放到各种配置对象中,例如Action的映射存放在ActionMapping对象中.(3)具体的说,Struts框架总控制器(ActionServle)t完成所...原创 2010-10-06 19:35:09 · 282 阅读 · 0 评论 -
<bean:cookie>
在继承Action的excute方法中 //bean:cookie begin Cookie cookieTemp = new Cookie("test_name", "test_value"); cookieTemp.setComment("A test cookie"); cookieTemp.setMaxAge(120); response.addCookie(...原创 2010-06-27 23:04:43 · 207 阅读 · 0 评论 -
解决web project中用FileInputStream读取properties系统找不到指定的路径
package com.test.action;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.IOException;import java.util.Properties;/** * java pr...原创 2010-12-17 00:22:11 · 997 阅读 · 0 评论 -
filter_setEncoding_note
(1)通过struts内部的RequestProcessor来设置编码。EncodingHandler.javapackage com.test.util;import java.io.UnsupportedEncodingException;import javax.servlet.http.HttpServletRequest;import javax.servle...原创 2010-06-22 00:34:23 · 145 阅读 · 0 评论 -
logic:redirect
官方例子:下面的forward对应struts-config.xml配置的global-forwardsindex.jspstruts-config.xml原创 2010-11-24 00:08:00 · 392 阅读 · 0 评论 -
DynaActionForm的使用
<br />1)什么是动态ActionForm<br /><br /><br />动态ActionForm是struts从1.1版本开始引入一项新的技术,即在创建ActionForm时<br />可以不用通过编程的方式而只要通过struts-config.xml文件中进行配置,以后在struts运行时,会自动根<br /><br />据struts-config.xml中配置的DynaActionform来生成一个Action实例<br /><br /> 2)为什么要使用DynaAction转载 2010-11-24 00:27:00 · 728 阅读 · 0 评论 -
struts_logic_iterate
http://fanlinyi.iteye.com/blog/5101932010-03-05 17:33:21 · 134 阅读 · 0 评论 -
struts_tag
struts_tag2010-03-16 00:21:28 · 105 阅读 · 0 评论 -
struts_doc(1)
12010-03-16 00:48:54 · 117 阅读 · 0 评论 -
struts_doc(2)
struts_doc(2)2010-03-16 00:53:33 · 96 阅读 · 0 评论 -
bean:message
*.jsp<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> <bean:message key="name" bundle="testBundle"/> <bean:message key="name" bundle="testBun2010-03-17 00:03:42 · 213 阅读 · 0 评论 -
login_demo
note:(1)注意几种action用法。Object|-Action|- BaseAction|- DispatchAction|- EventDispatchAction|- LookupDispatchAction|- MappingDispatchAction|- DownloadAction|- ForwardAction|- I...原创 2010-06-21 23:40:32 · 188 阅读 · 0 评论 -
Struts配置文件详解
<zt>http://blog.youkuaiyun.com/FutureInHands/archive/2006/11/15/1385681.aspxStruts 框架在启动时会读入其配置文件,根据它来创建和配置各种 Struts 组件。 Struts 配置文件使得开发者可以灵活地组装和配置各个组件,提高了应用软件的可扩展性和灵活性,可以避免硬编码。 Struts 配置文件是基于 XML 的...原创 2010-11-09 23:28:08 · 135 阅读 · 0 评论
分享