newsedit.jsp

来自「fish新闻系统fish新闻系统fish新闻系统fish新闻系统」· JSP 代码 · 共 42 行

JSP
42
字号
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
<html> 
	<head>
		<title>Edit a book</title>
	</head>
	<body>
		<%-- create a html form --%>
                <html:form action="newsEdit">
                <html:hidden property="id" />
                        <%-- print out the form data --%>
                        <table border="1" width="601">
                                <tbody>
                                <tr>
                                        <td>Date:</td>
                                        <td><html:text property="date" /></td>
                                </tr>
                                <tr>
                                        <td>Title:</td>
                                        <td><html:text property="title" /></td>
                                </tr>
                                <tr>
                                        <td>Info:</td>
                                        <td><html:textarea property="info" /></td>
                                </tr>
                                </tbody>
                        </table>
                        <%-- set the parameter for the dispatch action --%>
                        <html:hidden property="do" value="saveNews" />  
                        
                        <br>
                        <%-- submit and back button --%>
                        <html:button property="back" onclick="history.back();">Back</html:button>
                        &nbsp;
                        <html:submit>Save</html:submit>
                </html:form>
	</body>
</html>

⌨️ 快捷键说明

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