⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 requestmodify.jsp

📁 《Web程序测试实训教程(Java版)》-徐民鹰-源代码
💻 JSP
字号:
<%@ page language="java" import="java.util.*" %>
<%@page contentType="text/html; charset=gb2312" buffer="20kb" %>
<%@page import="bookInfo.*" %>
<%@page import="bookType.*" %><html>    <head>        <title>图书信息修改 <%= request.getParameter ("id") %></title>    </head>
    <LINK href="../include/style.css" type=text/css rel=stylesheet>    <body bgcolor="#ffffee">        <h4><center>图书信息修改 <%= request.getParameter ("id") %></center></h4><%        IBookInfoDB binfoDB = new BookInfoDB();
        BookInfo binfo = (BookInfo) binfoDB.getBookDetailInfo(Integer.parseInt(request.getParameter ("id")));
        if (binfo != null)        {%>            <form method="post" action="DoAdd.jsp?saveType=2">            <input name="id" type="hidden" value=<%= binfo.getBookInfoId () %>>            <table align="center" cellpadding="2" cellspacing="2" border="1" width="60%" bgcolor="#dddddd">                <tr>
                <td>图书类别:</th>
                <td>
                <select size=1 name="bookType">
<%
            //图书类别列表
            BtypeDB btypeDB = new BtypeDB();
            Collection booktype = btypeDB.getTypes();
            if (booktype != null)
            {
                if (booktype.size () > 0)
                {
                    for (Iterator iterator = booktype.iterator(); iterator.hasNext(); )
                    {
                    	Btype btype = (Btype) iterator.next ();
%>
                <option value="<%= btype.getId ()%>" <%if (Integer.toString(btype.getId ()).equals(Integer.toString(binfo.getBookTypeId ()))) System.out.print("selected"); %>><%= btype.getType()%></option>
<%
                    }
                }
            }
%> 
                </select>
               </td>
            </tr>
            <tr>
                <td>图书名称:</th>
                <td><input name="bookTitle" type="text" value="<%=binfo.getBookTitle() %>"></td>
            </tr>
            <tr>
                <td>ISBN:</th>
                <td><input name="ISBN" type="text" value="<%=binfo.getIsbn() %>"></td>
            </tr>
            <tr>
                <td>作者译者:</th>
                <td><input name="author" type="text" value="<%=binfo.getAuthor() %>"></td>
            </tr>
            <tr>
                <td>出版日期:</th>
                <td><input name="pubDate" type="text" value="<%=binfo.getPubdate() %>"></td>
            </tr>
            <tr>
                <td>出版社:</th>
                <td><input name="press" type="text" value="<%=binfo.getPress() %>"></td>
            </tr>
            <tr>
                <td>数量:</th>
                <td><input name="amount" type="text" value="<%=binfo.getAmount() %>"></td>
            </tr>
            <tr>
                <td>价格:</td>
                <td><input name="price" type="text" value="<%=binfo.getPrice() %>"></td>
            </tr>
            <tr>
                <td>图片上载:</td>
                <td><iframe frameborder="0" width="360" height="50" scrolling="no" src="upload.jsp" ></iframe>
               
                </td>
            </tr>
            <tr>
                <td>图片路径:</td>
                <td> <input name="upPic" type="text" value="<%=binfo.getPicpath() %>"></td>
            </tr>
            <tr>
                <td>内容摘要:</td>
                <td><textarea rows="5" name="content" cols="22"><%=binfo.getContent() %></textarea></td>
            </tr>            </table>            <br>            <center>                <input name="pagemode" type="hidden" value="submit">                <input align="center" type="submit" value="修改">
                &nbsp;&nbsp;
                    <input type="reset" value="取消">            </center><%        }        else        {%>            <center>                <h2><font color="#cc0000">未找到记录 <%= request.getParameter ("id") %></font></h2>            </center><%        }%>        <hr>        <center>            <b><a href="Home.jsp">[返回]</a></b>        </center>    </body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -