<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆-109  評論-187  文章-25  trackbacks-0
     
    ?
    113:
    移位運算符性質
    適用數據類型:byte、short、char、int、long,對低于int型的操作數將先自動轉換為int型再移位
    對于int型整數移位,系統先將b對32取模,得到的結果才是真正移位的位數
    對于long型整數移位時 ,則是先將移位位數b對64取模
    114:
    byte--short--int--long--float--double
    ? ? ?char---/
    posted @ 2006-04-13 08:58 小小程序程序員混口飯吃 閱讀(170) | 評論 (0)編輯 收藏
         摘要: 一、 Assertion 的語法和語義 J2SE 1.4 在語言上提供了一個新特性,就是assertion(斷言)功能,它是該版本在...  閱讀全文
    posted @ 2006-04-13 08:58 小小程序程序員混口飯吃 閱讀(776) | 評論 (0)編輯 收藏

    <logic:iterate id="user" property="users" name="usersForm" type="net.wjp.pro.db.entity.logon.User">

    < bean:write name="user" property="username"/><br/>

    /FONT>

    從USERSFORM中取的users的LIST,list里面的type是User

    里面的PROPERTY是USERNAME

    </logic:iterate >

    posted @ 2006-04-13 08:57 小小程序程序員混口飯吃 閱讀(256) | 評論 (0)編輯 收藏
    ?
    19: ? ? class A {
    public int getNumber(int a) {
    ? ? return a + 1;
    }
    ? ? ? ? }
    ?
    ? ? ? ? class B extends A {
    public int getNumber (int a) {
    return a + 2;
    ? ? ? ? }
    ?
    public static void main (String args[]) ?{
    A a = new B();
    14. System.out.printIn(a.getNumber(0));
    15. ? ?}
    16. } ?
    What is the result?
    A. Compilation succeeds and 1 is printed.
    B. Compilation succeeds and 2 is printed.
    C. An error at line 8 causes compilation to fail.
    D. An error at line 13 causes compilation to fail.
    E. An error at line 14 causes compilation to fail.
    Answer:B。記住一句話,成員變量(編譯時)看左邊,方法(運行時)看右邊。
    posted @ 2006-04-13 08:57 小小程序程序員混口飯吃 閱讀(929) | 評論 (1)編輯 收藏
    ?

    其實生成JAVADOC很簡單,在DOS下用命令而已,生成JAVADOC的目的有2個:

    ?1:生成DOC

    2:檢驗一下你寫的代碼時候規范

    步驟:

    wsad-->window->preference->java->javadoc-->javadoc command-->select the javadoc.exe

    java perspective 下面

    wsad-->project-->Generate Javadoc-->select package

    ? next-->next-->input the argument in the javaoptions

    ok!你就可以看到生成的文檔了,要是CONSOLE有紅色的出現,證明你寫的程序不規范了,需要修改以下,調整以下,具體參數可以參考JAVADOC命令的參數行:

    如下

    javadoc: No packages or classes specified.
    usage: javadoc [options] [packagenames] [sourcefiles] [classnames] [@files]
    -overview ????????? Read overview documentation from HTML file
    -public?????????????????? Show only public classes and members
    -protected??????????????? Show protected/public classes and members (default)
    -package????????????????? Show package/protected/public classes and members
    -private????????????????? Show all classes and members
    -help???????????????????? Display command line options
    -doclet ?????????? Generate output via alternate doclet
    -docletpath ??????? Specify where to find doclet class files
    -1.1????????????????????? Generate output using JDK 1.1 emulating doclet
    -sourcepath ??? Specify where to find source files
    -classpath ???? Specify where to find user class files
    -bootclasspath Override location of class files loaded
    ????????????????????????? by the bootstrap class loader
    -extdirs ??????? Override location of installed extensions
    -verbose????????????????? Output messages about what Javadoc is doing
    -locale ??????????? Locale to be used, e.g. en_US or en_US_WIN
    -encoding ????????? Source file encoding name
    -J????????????????? Pass directly to the runtime system

    Provided by Standard doclet:
    -d ??????????? Destination directory for output files
    -use????????????????????? Create class and package usage pages
    -version????????????????? Include @version paragraphs
    -author?????????????????? Include @author paragraphs
    -splitindex?????????????? Split index into one file per letter
    -windowtitle ?????? Browser window title for the documenation
    -doctitle ???? Include title for the package index(first) page
    -header ?????? Include header text for each page
    -footer ?????? Include footer text for each page
    -bottom ?????? Include bottom text for each page
    -link ?????????????? Create links to javadoc output at
    -linkoffline Link to docs at using package list at
    -group :.. Group specified packages together in overview page
    -nodeprecated???????????? Do not include @deprecated information
    -nosince????????????????? Do not include @since information
    -nodeprecatedlist???????? Do not generate deprecated list
    -notree?????????????????? Do not generate class hierarchy
    -noindex????????????????? Do not generate index
    -nohelp?????????????????? Do not generate help link
    -nonavbar???????????????? Do not generate navigation bar
    -serialwarn?????????????? Generate warning about @serial tag
    -charset ??????? Charset for cross-platform viewing of generated docu
    ntation.
    -helpfile ????????? Include file that help link links to
    -stylesheetfile ??? File to change style of the generated documentation
    -docencoding ?????? Output encoding name

    posted @ 2006-04-13 08:56 小小程序程序員混口飯吃 閱讀(1776) | 評論 (0)編輯 收藏
    ?
    ?

    //IJavaProject javaProj = JavaCore.create(proj);

    //IProjectDescription des = proj.getDescription();

    //IPackageFragmentRoot fragroot = javaProj.getPackageFragmentRoot(folder);

    //IPackageFragment frag = fragroot.getPackageFragment(packageName) ;

    //{

    //frag = fragroot.createPackageFragment(packageName,

    //}

    //}

    //System.out.println(

    //}

    //try {//if(frag == null || ! frag.exists())true,null);catch(Exception jme) {"Exception in createpackageInStructsProject :" + jme);
    posted @ 2006-04-13 08:56 小小程序程序員混口飯吃 閱讀(171) | 評論 (0)編輯 收藏
    ?

    1:zoom是如何使用在里面的

    ??? (1)ZoomManager extends ZoomManager
    ?????? 為visualgroup 增加了zoom
    ?????? ===constructor
    ????? public GraphZoomManager(ScalableFigure pane,ViewPoint viewPoint,VisualGroup visualGroup){
    ??????? super(pane,viewpoint);
    ??????? this.visualGroup = visualGroup;
    ????? }
    ??? (2)override method
    ?????? protected void primSetZoom(double zoom){
    ????????? super.primSetZoom(zoom);
    ????????? getScalableFigure().setScale(1);
    ????????? visualGroup.setZoom(zoom);
    ????? }
    ???? (3)在visualGroup setZoom的時候,進行了如下操作
    ?????? public void setZoom(double zoom){
    ????????? setSize(getWidth()*zoom/getZoom(),getHight().zoom/getZoom());
    ????????? super.setZoom(zoom);
    ????????? //一下是對里面的點進行zoom
    ????????? for(Iterator iter = getVisualVertexList().iterator();iter.hasNext();){
    ???????????????? VisualVertext vertext = (VisualVertext)iter.next();
    ???????????????? vertext.setZoom(zoom);
    ?????????? }


    2:gef mvc

    ?GEF model iteract with controller only,to let controller know model's change ,所以應該把控制器作為事件監聽者,注冊在模型中,當模型發生變化,就出發相應的時間給控制器,然后負責通知給視圖進行更新

    3:Design pattern
    ?? OBSERVER的應用http://www.jdon.com/designpatterns/observer.htm這篇文章淺顯易懂,很不錯的


    4:所有事件都在VISUAL model里面,再COMMAND里面的EXECUTE來call
    ?? 所有的時間分布再不同的COMMAND的EXECUTE()里面

    ?? policy里面會SET COMMMAND,然后MVC會自動調用里面的EXECUTE方法

    ?? 然后去刷新FIGURE
    5:orpha

    6:ervery visual model -->every visual part-->every visual figure -->one or more policy -->one or more command
    7:figure是在MODEL更新完畢之后,有相關的EDIRPART,來監控,就是說OBSERVER來監視當前的EVENT,如果當前EVENT匹配一個
    那么會更新一個FIGRUE
    ?? code : visualVertextPart
    ?? editpart ===>c他有多個EDITPART,就跟STRUTS有多個ACTION一個道理。
    ?? GEF肯定也有一個核心的PART,負責整體的流裝,但是沒有找到是哪一個類。
    ?public void update(Observer o,Object arg){
    ????
    ??? //if(type ==locaction) then refresh figure;
    ??? //of course. GEF MVC,已經包裝好了,就不用我們考慮了,只需要你去做填鴨就可以了,:)
    ?? if (VisualGraphConstant.LOCATION.equals(type))
    ??????? {
    ??????????? IFigure figure = getFigure();
    ??????????? VisualVertex visualVertex = getVisualVertex();
    ??????????? figure.setLocation(new Point(visualVertex.getX(), visualVertex
    ??????????????????? .getY()));
    ??????? }

    }
    8;property 和outline是怎么加上去的??放在明天看吧


    9:toolbar跟 MENU是怎么加上去的:
    ?? toobar 是在PLUGIN.XML的ContributorClass 中加上去的,可以先看一下

    ?? extends ActionBarContributor
    ?? TOOLbar的東西ECLIPSE已經封裝的很好了,發現GEF真是了不起啊

    ?? menu是如何加上去的

    ?? 都是在EDITOR里面的CREATEACTIONS里面加上去的,OVERRIDES createActions method()

    ?? code as following
    ???? pretected void createActions(){
    ??????? super.createActions();
    ??????? IAction zoomInAction = new ZoomInAction(getZoomManager());
    ??????? IAction zoomOutAction = new ZoomOutAction(getZoomManager());
    ??????? addAction(zoomInAction());
    ??????? addAction(zoomOutAction());
    ??????? addAction(new OpenPropertiesViewAction());
    ???? }

    ?? OpenPropertiesViewActions code as follows

    ??? 1:利用現在的PROPERTIES的view,open properties sheet,ok...


    ?? OpendataPropertiesViewAction code as follwos
    ?????
    ??? 2:新建一個dataPropertiesViewAction

    ?????
    ???????

    posted on 2006
    posted @ 2006-04-13 08:56 小小程序程序員混口飯吃 閱讀(185) | 評論 (0)編輯 收藏
    ?

    1:GEF mvc framework

    2:policy 所有的POLICY應該是注冊在visual....part中的
    ? 每一個POLICY來生命相應的COMMMAND,可能會對應多個COMMMAND
    3:visualGraph -->rootEditpart--->

    ? configureGraphviewer()
    ???? ---super.configureGraphviewer()
    ???? ---getGraphicalViewer().setRootEditPart(rootEditPart);
    ???? ---getGraphicalViewer().setEditPartFactory(new GraphEdirPartFactory());
    ?? 以上屬于把ROOTEDITPART和EDIRPARTFACTORY()注冊到當前的Graphicalviewer當中
    ?? 內部已經已經封裝好了監聽,就跟STRUT一樣,你配置好,提交的時候就會又相應的ACTION去執行他,

    ??? CONFIG--->STRUTS-CONFIG? =======? 當前的REISTRY graphicalView().set()....
    ??? control核心? -->strust-actionServlet 和requestProcessor =======?? 當前的editpart 的GraphEditPartFactory();
    ??? 實際的action?? struts-action =========每個editpart --->policy -- >可能對應多格COMMAND

    4:commmandstack.addCommandStackListner();
    ?? getSite().getWorkBenchWindow().getSelectionService().addSelectionListener(this)

    ?? rootEidtpart.getZoomManger();

    ?? ZoomManger也是ACTION所以就注冊在了EDITPART中了
    ???
    5:我的疑問:
    ?? FIGURE和VERTEX GROUP,EDGE,GRAP的關系,是最小的????
    ?? FIGURE是未來顯示在EDITOR里面的最小單元???

    6:EDITOR里面的CreateGraphicalViewer(Composite composite)


    7:editpart initialize the editdomain,viewers,palette,
    ? editpart bootstraps the editpartviewers as content;

    8:
    ???? Model:
    ????????? The model should be changed using commands

    ???? View:
    ????????? View can bi several things
    ????????? (1) visual part,which serves as the primary represention for model object??
    ????????? (2) the most flexible visual part are Figures form drar2d
    ???? Cotroler:
    ????????? (1)a controller is an editpart,Editparts are the bread-and-butter of GEF
    ????????? (2) the entire view is managed by Editpart
    ????????? (3) editPart's responsibility is to manipulate the model with commands,complex model can lead to

    complex commands
    ????????? (4)to make editpart's job easier,each role is implemented by a pluggable object called editpolicy


    9: Result:
    ??? (1)edit part reprents a single conceptual object with which user can use direct or indirect interact
    ?????? but an editpart itself is not visible to user,but will represent itself through it's view??????????????
    ?

    10:
    ??? (1)
    ?? each editpart istall one or more editpolicies,editpart foward edit request to every installed editPolicy

    =================================11:Using EditPolicies,request,roles===============


    ?(1)Editpolicy

    ??? an editpart iterates over all it's policies to handle requests,but editpolicy ignore the request

    ?(2)role
    ??? as i understand ,role is string ,like COMPONENT_ROLE..
    ?(3)request
    ??? are used to communicate with an editpart


    ?(4) role and editpolicies in GEF are partitioned into two basic types:graphical and non-graphical

    ??

    posted @ 2006-04-13 08:55 小小程序程序員混口飯吃 閱讀(214) | 評論 (0)編輯 收藏
    ?

    2005-10-20 16:30:46

    正則表達式(regular expression)對象包含一個正則表達式模式(pattern)。它具有用正則表達式模式去匹配或代替一個字符串(string)中特定字符(或字符集合)的屬性(properties)和方法(methods)。 要為一個單獨的正則表達式添加屬性,可以使用正則表達式構造函數(constructor function),無論何時被調用的預設置的正則表達式擁有靜態的屬性(the predefined RegExp object has static properties that are set whenever any regular expression is used, 我不知道我翻得對不對,將原文列出,請自行翻譯)。

    創建:
    一個文本格式或正則表達式構造函數
    文本格式: /pattern/flags
    正則表達式構造函數: new RegExp("pattern"[,"flags"]);
    參數說明:
    pattern -- 一個正則表達式文本
    flags -- 如果存在,將是以下值:
    g: 全局匹配
    i: 忽略大小寫
    gi: 以上組合
    [注意] 文本格式的參數不用引號,而在用構造函數時的參數需要引號。如:/ab+c/i new RegExp("ab+c","i")是實現一樣的功能。
    在構造函數中,一些特殊字符需要進行轉意(在特殊字符前加"\")。如:re = new RegExp("\\w+")

    正則表達式中的特殊字符

    字符 含意
    \ 做為轉意,即通常在"\"后面的字符不按原來意義解釋,如/b/匹配字符"b",當b前面加了反斜桿后/\b/,轉意為匹配一個單詞的邊界。
    -或-
    對正則表達式功能字符的還原,如"*"匹配它前面元字符0次或多次,/a*/將匹配a,aa,aaa,加了"\"后,/a\*/將只匹配"a*"。

    ^ 匹配一個輸入或一行的開頭,/^a/匹配"an A",而不匹配"An a"
    $ 匹配一個輸入或一行的結尾,/a$/匹配"An a",而不匹配"an A"
    * 匹配前面元字符0次或多次,/ba*/將匹配b,ba,baa,baaa
    + 匹配前面元字符1次或多次,/ba*/將匹配ba,baa,baaa
    ? 匹配前面元字符0次或1次,/ba*/將匹配b,ba
    (x) 匹配x保存x在名為$1...$9的變量中
    x|y 匹配x或y
    {n} 精確匹配n次
    {n,} 匹配n次以上
    {n,m} 匹配n-m次
    [xyz] 字符集(character set),匹配這個集合中的任一一個字符(或元字符)
    [^xyz] 不匹配這個集合中的任何一個字符
    [\b] 匹配一個退格符
    \b 匹配一個單詞的邊界
    \B 匹配一個單詞的非邊界
    \cX 這兒,X是一個控制符,/\cM/匹配Ctrl-M
    \d 匹配一個字數字符,/\d/ = /[0-9]/
    \D 匹配一個非字數字符,/\D/ = /[^0-9]/
    \n 匹配一個換行符
    \r 匹配一個回車符
    \s 匹配一個空白字符,包括\n,\r,\f,\t,\v等
    \S 匹配一個非空白字符,等于/[^\n\f\r\t\v]/
    \t 匹配一個制表符
    \v 匹配一個重直制表符
    \w 匹配一個可以組成單詞的字符(alphanumeric,這是我的意譯,含數字),包括下劃線,如[\w]匹配"$5.98"中的5,等于[a-zA-Z0-9]
    \W 匹配一個不可以組成單詞的字符,如[\W]匹配"$5.98"中的$,等于[^a-zA-Z0-9]。



    說了這么多了,我們來看一些正則表達式的實際應用的例子:

    E-mail地址驗證:
    function test_email(strEmail) {
    var myReg = /^[_a-z0-9]+@([_a-z0-9]+\.)+[a-z0-9]{2,3}$/;
    if(myReg.test(strEmail)) return true;
    return false;
    }
    HTML代碼的屏蔽
    function mask_HTMLCode(strInput) {
    var myReg = /<(\w+)>/;
    return strInput.replace(myReg, "<$1>");
    }

    正則表達式對象的屬性及方法
      預定義的正則表達式擁有有以下靜態屬性:input, multiline, lastMatch, lastParen, leftContext, rightContext和$1到$9。
    其中input和multiline可以預設置。其他屬性的值在執行過exec或test方法后被根據不同條件賦以不同的值。
    許多屬性同時擁有長和短(perl風格)的兩個名字,并且,這兩個名字指向同一個值。(JavaScript模擬perl的正則表達式)

    正則表達式對象的屬性 屬性 含義
    $1...$9 如果它(們)存在,是匹配到的子串
    $_ 參見input
    $* 參見multiline
    $& 參見lastMatch
    $+ 參見lastParen
    $` 參見leftContext
    $’          參見rightContext
    constructor    創建一個對象的一個特殊的函數原型
    global       是否在整個串中匹配(bool型)
    ignoreCase     匹配時是否忽略大小寫(bool型)
    input        被匹配的串
    lastIndex     最后一次匹配的索引
    lastParen     最后一個括號括起來的子串
    leftContext    最近一次匹配以左的子串
    multiline     是否進行多行匹配(bool型)
    prototype     允許附加屬性給對象
    rightContext    最近一次匹配以右的子串
    source       正則表達式模式
    lastIndex     最后一次匹配的索引


    正則表達式對象的方法
    方法 含義
    compile      正則表達式比較
    exec        執行查找
    test        進行匹配
    toSource      返回特定對象的定義(literal representing),其值可用來創建一個新的對象。重載Object.toSource方法得到的。
    toString      返回特定對象的串。重載Object.toString方法得到的。
    valueOf      返回特定對象的原始值。重載Object.valueOf方法得到

    例子
    Smith, John
    將輸出"Smith, John"

    ?
    posted @ 2006-04-13 08:55 小小程序程序員混口飯吃 閱讀(211) | 評論 (0)編輯 收藏
    ?

    JSTL包含以下的標簽:
    ?? 常用的標簽:如<c:out>、<c:remove>、<c:catch>、<c:set>等
    ?? 條件標簽:如<c:if><c:when>、<c:choose>、<c:otherwise>等
    ?? URL標簽:如<c:import>、<c:redirect>和<c:url>等
    ?? XML標簽:如<xml:out>等
    ?? 國際化輸出標簽:如<fmt:timeZone>等
    ?? SQL標簽:如<sql:query>、<sql:update>、<sql:transaction>等
    ?
    一般用途的標簽:
    1.<c:out>
    沒有Body時的語法
    <c:out value="value" [escapeXml="{true|false}"] [default="defaultValue"]/>
    有Body時的語法
    <c:out value="value" [escapeXml="{true|false}"]>
    這里是Body部分
    </c:out>
    名字????????????????? 類型?????????????? 描述
    value?????????????? Object???????? 將要輸出的表達式
    escapeXml??? boolean????? 確定以下字符:<,>,&,',"在字符串中是否被除數,默認為true
    default??????????? Object????????? 如果vaule計算后的結果是null,那么輸出這個默認值

    2.<c:set>
    這個標簽用于在某個范圍(page、request、session、application等)中使用某個名字設定特定的值,或者設定某個已經存在的javabean對象的屬性。他類似于<%request.setAttrbute("name","value");%>
    語法1:使用value屬性設定一個特定范圍中的屬性。
    <c:set value="value" var="varName" [scope="{page|request|session|application}"]/>
    語法2:使用value屬性設定一個特定范圍中的屬性,并帶有一個Body。
    <c:set var="varName" [scope="{page|request|session|application}"]>
    Body部分
    </c:set>
    語法3:設置某個特定對象的一個屬性。
    <c:set value="value" target="target" property="propertyName"/>
    語法4:設置某個特定對象的一個屬性,并帶有一個Body。
    <c:set target="target" property="propertyName">
    Body部分
    </c:set>

    名字???????????? 類型???????????????????????? 描述
    value??????????? Object?????????? 將要計算的表到式。
    var??????????????? String??????????? 用于表示value 值的屬性,如果要在其他標簽中使用,就是通過這 個var指定的值來進行的。它相當于在標簽定義了一個變量,并且這個變量只能在標簽中的一個。
    scope????????? String???????????? var的有效范圍,可以是page|request|session|application中的一個
    target?????????? String?????????? 將要設置屬性的對象,它必須是javabean或則java.util.Map對象
    property?????? Object?????????? 待設定的Target對象中的屬性名字,比如在javabean中有個name屬性,提供了setUserId方法,那么這里填userId。

    3.<c:remove>
    <c:remove var="varName" [scope="{page|request|session|application}"]/>

    4.<c:catch>
    這個標簽相當于捕獲在它里邊的標簽拋出的異常對象
    <c:catch [var="varName"]> //var是異常的名字
    內容
    </c:catch>

    條件標簽
    1. <c:if>
    語法1:無Body情況
    <c:if test="testCondition" var="varName" [scope="page|request|session|application"]/>
    語法2:有Body的情況
    <c:if test="testCondition" var="varName" [scope="page|request|session|application"]>
    Body內容
    </c:if>

    名字 類型 描述
    test Boolean 表達式的條件,相當于if()中的條件判斷語句。
    var String 表示這個語句的名字。
    scope String var這個變量的作用范圍。

    2.<c:choose>
    語法:<c:choose>
    Body內容(<c:when>和<c:otherwise>子標簽)
    </c:choose>
    注意:它的Body只能由以下元素組成:
    1) 空格
    2) 0或多個<c:when>子標簽,<c:when>必須在<c:otherwise>標簽之前出現.
    3) 0個或多個<c:otherwise>子標簽。

    3.<c:when>
    代表的是<c:choose>的一個條件分支,只能在<c:choose>中使用
    語法:<c:when test="testCondition"> //test是boolean類型,用于判斷條件真假
    Body語句
    </c:when>

    4.<c:otherwise>
    代表的是<c:choose>中的最后選擇。必須在最后出現
    <c:otherwise>
    內容
    </c:otherwise>

    迭代標簽
    1.<c:forEach>
    語法1:在Collection中迭代
    <c:forEach[var="varName"] items="collection" [varStatus="varStatusName"]
    [begin="begin"] [end="end"] [step="step"]
    Body內容
    </c:foeEach>

    語法2:迭代固定的次數.
    <c:forEach [var="varName"] [varStatus="varStatusName"]
    [begin="begin"] [end="end"] [step="step"]
    Body內容
    </c:foeEach>

    名字?????????????? 類型??????????????????????????????????? 描述
    var???????????????? String??????????????????????????????? 迭代的參數,它是標簽參數,在其他標簽中通過它來引用這個標簽中的內容。
    Items?????????? Collection、ArrayList、? 要迭代的items集合.
    ???????????????????? Iterator、Map、String、
    ????????????????????? Eunmeration等
    VarStatus?? String????????????????????????????????? 表示迭代的狀態,可以訪問迭代自身的信息
    Begin????????? int??????????????????????????????????????? 表示開始迭代的位置。
    End????????????? int?????????????????????????????????????? 表示結束迭代的位置。
    Step??????????? int??????????????????????????????????????? 表示迭代移動的步長,默認為1。

    URL相關的標簽
    1.<c:import>
    語法1:資源的內容使用String對象向外暴露
    <c:import url="url" [context="context"]
    [var="varName"] [scope="{page|request|session|application}"] [charEncoding="charEncoding"]>
    內容
    </c:import>

    語法2:資源的內容使用Reader對象向外暴露。
    <c:import url="url" [context="context"]
    varReader="varReaderName" [charEncoding="charEncoding"]>
    內容
    </c:import>
    名字????????????????? 類型?????????????????????????????? 描述
    url???????????????????? String???????????????????? 待導入資源的URL,可以是相對路徑和絕對路徑,并且可以導入其他主機資源
    context???????????? String???????????????????? 當使用相對路徑訪問外部context資源時,context指定了這個資源的名字。
    var???????????????????? String??????????????????? 參數的名字。
    scope?????????????? String??????????????????? var參數的作用范圍。
    cahrEncoding String??????????????????? 輸入資源的字符編碼。
    varReader?????? String??????????????????? 這個參數的類型是Reader,用于讀取資源。

    2.<c:redirct>
    語法1:沒有Body的情況.
    <c:redirect url="value" [context="context"]/>
    語法2:有Body情況下,在Body中指定查詢的參數
    <c:redirect url="value" [context="context"]>
    <c:param name="name" value="value"/>
    </c:redirect>

    3.<c:url>
    語法1:沒有Body
    <c:url value="value" [context="context"] [var="varName"] [scope="{page|request|session+application}"]/>
    語法2:有Body
    <c:url value="value" [context="context"] [var="varName"] [scope="{page|request|session+application}"]>
    <c:param name="name" value="value"/>
    </c:url>

    名字????????????????? 類型????????????????? 描述
    value???????????? String??????????????? URL值
    context????????? String???????????????? 當使用相對路徑訪問外部context資源時,context指定了這個資源的名字
    var???????????????? String???????????????? 標識這個URL標量。
    Scope?????????? String??????????????? 變量作用范圍。

    SQL相關的標簽
    1.<sql:setDataSource>
    2.<sql:query>
    3.<sql:update>
    4.<transaction>
    5.<param>

    ?

    posted @ 2006-04-13 08:54 小小程序程序員混口飯吃 閱讀(875) | 評論 (0)編輯 收藏
    僅列出標題
    共11頁: First 上一頁 3 4 5 6 7 8 9 10 11 下一頁 
    主站蜘蛛池模板: 亚洲AV无码第一区二区三区| 亚洲?V乱码久久精品蜜桃| 亚洲成AV人片在| baoyu777永久免费视频| 亚洲综合网站色欲色欲| 99久久成人国产精品免费| 亚洲乱码中文字幕综合| 一级女人18片毛片免费视频| 亚洲AV无码成人精品区大在线 | 久久亚洲美女精品国产精品 | 在线精品一卡乱码免费| 亚洲嫩草影院在线观看| 97免费人妻无码视频| 精品丝袜国产自在线拍亚洲| 好爽…又高潮了免费毛片| 亚洲午夜无码久久| 亚洲A∨精品一区二区三区| 一区二区三区精品高清视频免费在线播放 | 日韩精品极品视频在线观看免费| 亚洲一区二区在线视频| 日本成年免费网站| 国产综合激情在线亚洲第一页| 免费一级做a爰片性色毛片| 香蕉免费一级视频在线观看| 亚洲AV综合色区无码一区| 国产精品爱啪在线线免费观看| 久久夜色精品国产噜噜亚洲a| 国产成人3p视频免费观看| 黄色视频在线免费观看| 亚洲综合色丁香麻豆| 免费看香港一级毛片| 国产无遮挡色视频免费观看性色| 久久精品亚洲综合专区| 免费不卡视频一卡二卡| 亚洲一级片免费看| 亚洲成年人免费网站| 四虎影视精品永久免费| 久久久高清日本道免费观看| 亚洲国产熟亚洲女视频| 国产亚洲大尺度无码无码专线| jjizz全部免费看片|