`

struts1.x--学习笔记五

阅读更多
一 implict Action which in struts

1. DispatchAction
        Action element
                1) path =".."  the directory which can come into this action.
                2) type =".."  the class of the action(completed directory)               
                3) parameter=".." the value of a hidden parameter.which nested in a request.

2. mappingAction
       
        <form-bean>
       
                1) name= ".." same as name which in Action element.
                2) type= ".."  the class of formAction
                3) path=" " all the path is the same
        </form-bean>
       
        Action element

                1) validate=".." if the value of this attribute is false,wiil not execute the input attribute ,and thow a Exception. usually use in MappingAction.
                2) parameter=" " the name of method which defined in Action.
                3) name= ".."  if have ,the name of the formAction is name which defined in form-baen element .will execute ActionForm.
                4) input= ".."  in formAction ,if the result of return is not null,means did't passed the validate ,the system wiill transfor to the directory which defined in input attribute. if validation failed ,controller dispatch the request to this .
       
3. lookupAction
       
        1) the button is named in resources file -----use <bean:message key="..."/>  message.properities
       
        2) in struts-config.xml, just write one action .        same  parameter attribute. same url. same type. maybe difference forward
       
        3) override public Map getKeyMethodMap(). and in this method first  new a map. then put into ("message.xxx(which from resources file)","xxx").

        4) last , write a method like execute. but replace the method name with xxx. ok
分享到:
评论

相关推荐

    Struts1.x常用的开发包,需要学习struts1.x朋友可以下载

    Struts1.x常用的开发包,需要学习struts1.x朋友可以下载

    魔乐科技Struts2.x框架笔记

    学习魔乐科技Struts2.x视频框架的学习笔记,在这里给各位参考一下,要mldn其他框架笔记的请关注我,后续会推出

    struts 1.x学习笔记

    struts 1.x学习笔记,简单易懂,适合入门者

    Struts1.x笔记

    Struts1.x学习笔记,struts1.x开放过程小技巧

    Java/JavaEE 学习笔记

    Struts学习笔记...............263 Struts2.0..263 第一章 MVC Model.........................263 第二章 Struts Basic264 第三章 Action,Result & Struts2 Tag Library......................267 第四章 Data ...

    计算机软件编程学习笔记.rar

    计算机软件编程学习笔记: 01. Unix note.txt 02. SQL note.txt 03. PL SQL note.txt 04. CVS note.txt 05. Core Java exercise.txt 05. Core Java note.txt 06. OOAD & UML note.txt 07. Xml note.txt 08. JDBC ...

    J2EE学习笔记(J2ee初学者必备手册)

    Struts学习笔记...............263 Struts2.0..263 第一章 MVC Model.........................263 第二章 Struts Basic264 第三章 Action,Result & Struts2 Tag Library......................267 第四章 Data ...

    MVC框架struts学习笔记

    MVC框架struts学习笔记1MVC框架struts学习笔记1MVC框架struts学习笔记1

    holemar学习笔记(2011-12-21)

    Struts1.x.jsp Struts2.x.jsp WebService.java Xml.java Linux Shell.sh ubuntu.txt OOAD_UML\OOAD_UML.txt PHP\php.php Python Python.py Django.py tornado.py SEO\SEO.txt Web AJAX.js CSS.css ...

    SSI-iBatis2.x

    本文是个人在学习过程中的学习笔记,详细讲解了如何使用iBatis2.x以及如何将其与Struts2.x,Spring3.x进行整合开发,其中包括iBatis基础使用,存储过程调用和数据库函数的调用。

    Struts2.1讲义

    Struts2.X的学习讲义 适合入门者进一步的提高对Struts的认识。

    AngularJS1.X学习笔记2-数据绑定详解

    应该所有的MVC框架都会用到数据绑定,比如我所知道的ThinkPHP、struts等,只有实现了数据绑定才能将模型层和视图层分离,实现MVC。Angular的数据绑定比较特别,它支持双向数据绑定。 1、ng-bind &lt;!DOCTYPE html&gt;...

    FreeMark学习笔记

    ["星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期天"] as x&gt; ${x} 输出结果是: 星期一 星期二 星期三 星期四 星期五 星期六 星期天 除此之外,集合元素也可以是表达式,例子如下: [2 + 2, [1, 2...

    整理后java开发全套达内学习笔记(含练习)

    十六进制数,零x开头 0x55(十六进制)=5*16+5(十进制) 类型:数据都必须有类型 boolean (8bit,不定的)只有true和false两个值 char 16bit, 0~2^16-1 (2^16=6万6) byte 8bit, -2^7~2^7-1 (2^7=128; 注意:两个 ...

    jive.chm

    系统设计 1 jive设计思路 2 jive的工作内幕 3 Jive源代码研究 4 Jive中的设计模式 5 jive学习笔记 &lt;br&gt; 设计模式 1 大道至简-Java之23种模式一点就通 2 设计模式...

Global site tag (gtag.js) - Google Analytics