origo

          origo

          BlogJava 首頁 新隨筆 聯(lián)系 聚合 管理
            15 Posts :: 0 Stories :: 13 Comments :: 0 Trackbacks
          1.      
          <s:div id="loginDiv" theme="ajax">
                      <div style="width: 300px;border-style: solid">
                        <s:form action="freemarker.do" >
                          <tr>
                            <td colspan="2">
                              Login
                            </td>
                          </tr>
                          <tr>
                            <td colspan="2">
                              <s:actionerror />
                              <s:fielderror />
                            </td>
                          </tr> 
                            <s:textfield name="username" label="Login name"/>
                            <s:password name="password" label="Password"/>
                            <s:submit theme="ajax" targets="loginDiv" notifyTopics="/freemarker.do"/>   
                        </s:form>
                      </div>
             </s:div>

          2.
           <img id="indicator1" src="${pageContext.request.contextPath}/images/indicator.gif"
          alt="Loading Info" style="display:none"/>

          <s:url id="ajaxTest1" value="/freemarker.do" />
                  <s:div theme="ajax" id="users1" href="%{ajaxTest1}"
                      loadingText="Loading  information..."
                      errorText="Unable to contact  server" indicator="indicator1">
                      delay="2000"
                      updateFreq="60000"
                          Placeholder...
          </s:div>


          https://issues.apache.org/struts/secure/ReleaseNote.jspa?projectId=10030&styleName=Html&version=21743

          http://struts.apache.org/2.x/docs/ajax-tags.html
          http://www.theserverside.com/tt/articles/article.tss?l=AjaxCRUDStruts2
          http://dojotoolkit.org/book/dojo-book-0-4/part-5-connecting-pieces/event-system/topics

          http://struts.apache.org/2.x/docs/ajax-and-javascript-recipes.html

          posted on 2008-05-09 13:14 origo 閱讀(1228) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導航:
           
          主站蜘蛛池模板: 冷水江市| 新巴尔虎右旗| 汾西县| 龙游县| 东乌珠穆沁旗| 喀喇沁旗| 阆中市| 航空| 综艺| 武川县| 清河县| 德兴市| 常德市| 邵东县| 高邮市| 乌兰察布市| 邵武市| 丰镇市| 绥江县| 遂宁市| 浦东新区| 广灵县| 醴陵市| 阿勒泰市| 吴旗县| 兰溪市| 永寿县| 灌南县| 凤庆县| 乌恰县| 闽清县| 固始县| 辽宁省| 白玉县| 普宁市| 临沧市| 德令哈市| 北川| 阳泉市| 廊坊市| 静海县|