<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # 步驟1: 編輯頁面 如圖所示,點擊編輯按鈕之后,出現分類編輯頁面 ![](https://box.kancloud.cn/ea6dc0c77813ed0dec3547e18668ebaf_529x246.png) # 步驟 2 : 編輯超鏈 用于編輯的超鏈,指向地址admin_category_edit,并且會傳遞當前分類對象的id過去。 `<a href="admin_category_edit?id=${c.id}"><span class="glyphicon glyphicon-edit"></span></a>` ![](https://box.kancloud.cn/aac591dc495a8770945f062ded9d40a9_88x307.png) # 步驟3: 調用CategoryServlet.edit()方法 CategoryServlet.edit()方法的邏輯很清晰 1\. 獲取id 2\. 借助categoryDAO,根據id獲取Category對象 3\. 把Category對象放在request里 4\. 服務端跳轉到admin/editCategory.jsp 頁面 ``` public String edit(HttpServletRequest request, HttpServletResponse response) { int id = Integer.parseInt(request.getParameter("id")); Category c = categoryDao.get(id); request.setAttribute("c", c); return "admin/editCategory.jsp"; } ``` # 步驟 4 : 服務端跳轉到editCategory.jsp頁面 在editCategory.jsp頁面里,獲取由CategoryServlet.edit() 通過request傳遞過來的Category對象,獲取name和id,分別放在 ``` <input id="name" name="name" value="${c.name}" type="text" class="form-control"> <input type="hidden" name="id" value="${c.id}"> ``` 但是不能放在瀏覽圖片這個input上。 因為瀏覽器不支持 ``` <input id="categoryPic" accept="image/*" type="file" name="filepath" /> ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看