隨筆 - 45, 文章 - 2, 評論 - 11, 引用 - 0
          數據加載中……

          2011年5月1日

          JSTL的使用

          1、在jsp文件的頭部加入
          <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>

          2、<c:froEach/>的使用
           1<%
           2        OperationDAO opDao = new OperationDAOImpl();
           3        List<Operation> ops = opDao.getAll_();
           4        MenuDAO meDao = new MenuDAOImpl();
           5        List<Menu> mes = meDao.getAll_Lazy(1) ;
           6    %>
           7            <table id="demoTable" border="1">
           8            <thead>
           9                <th>id</th>
          10                <th>顯示名稱</th>
          11                <th>鏈接</th>
          12                <th>所屬菜單</th>
          13                <th>是否可見</th>
          14                <th>操作</th>
          15            </thead>
          16            <tbody>
          17                <c:forEach var="op" items="<%=ops %>">
          18                    <tr id="${op.op_Id}"
          19                        class="{op_Id:${op.op_Id},op_displayName:'${op.op_displayName}',op_link:'${op.op_link }',me_name:'${op.menu.me_displayName}',viewMode:'${op.viewMode}'}">
          20                        <td class="op_Id">${op.op_Id}</td>
          21                        <td class="op_displayName">${op.op_displayName}</td>
          22                        <td class="op_link">${op.op_link }</td>
          23                        <td class="me_name">${op.menu.me_displayName}</td>
          24                        <td class="viewMode">viewMode:${op.viewMode}</td>
          25                        <td><class="editRecord" href="anotherPage.html">Edit</a> |
          26                            <class="deleteRecord" href="anotherPage.html">Delete</a></td>
          27                    </tr>
          28                </c:forEach>
          29            </tbody>
          30        </table>



          posted @ 2011-05-08 23:16 jack zhai 閱讀(212) | 評論 (0)編輯 收藏

          spring的一般配置

          beans.xml

          beans

           

           

          jdbc.properties

          properties

          在web.xml里加入

          web.xml


           

          posted @ 2011-05-01 14:26 jack zhai 閱讀(233) | 評論 (0)編輯 收藏

          主站蜘蛛池模板: 公主岭市| 营口市| 交口县| 石城县| 大庆市| 北川| 城步| 寻乌县| 通许县| 淳化县| 元氏县| 曲阳县| 饶河县| 会泽县| 景东| 祁门县| 虎林市| 依安县| 湛江市| 康马县| 麟游县| 黄龙县| 海晏县| 迭部县| 平谷区| 高阳县| 兴山县| 定安县| 沛县| 东安县| 玉屏| 金门县| 淳化县| 夏河县| 马公市| 依安县| 大洼县| 平度市| 饶平县| 颍上县| 尼勒克县|