newsupdate.jsp

来自「基于j2ee的物流软件」· JSP 代码 · 共 110 行

JSP
110
字号
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'newsUpdate.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
    <link rel="stylesheet" type="text/css" href="employee/css/style.css">
	<link rel="stylesheet" type="text/css" href="employee/css/css.css">
    	
	</head>
	<body topMargin=0 leftmargin="0" marginheight="0">
		<form action="afterUpdateNews.do" method="post">
			<table border=1 width="60%" cellspacing=1 cellpadding=3 align=center
				bordercolor="#326598">
				<tr bgcolor="#e8f4ff">
					<td height=25 colspan="2" background="admin/images/tile_sub.gif">
						新闻信息-&gt;修改新闻信息
					</td>
				</tr>
				<tr>
					<td>
						新闻编号
					</td>
					<td>
					    ${ni.newsId} &nbsp;
					    <input type="hidden" name="newsId" value="${ni.newsId}">
					    <font color="red">*</font>新闻的编号不允许修改
					</td>
				</tr>
				<tr>	
					<td>
						新闻标题
					</td>
					<td>
					    <input type="text" name="newsTitle" size="15" value="${ni.newsTitle}">
					</td>
				</tr>
				<tr>	
					<td>
						新闻内容
					</td>
					<td>
					    <textarea name="newsContent" cols="60" rows="6" >${ni.newsContent}</textarea>
					</td>
				</tr>
				<tr>	
					<td>
						新闻作者
					</td>
					<td>
					   ${ni.newsAuthor}
					</td>
				</tr>
				<tr>	
					<td>
						新闻图片
					</td>
					<td>
					    <input type="hidden" name="newsPic" size="30" value="${ni.newsPic}">
					    <img src="${ni.newsPic}"/>
					</td>
				</tr>
				<tr>	
					<td>
						新闻描述
					</td>
					<td>
					    <input type="text" name="newsRemark" size="40" value="${ni.newsRemark}">
					</td>
				</tr>
				<tr>
				    <td colspan="2" align="center"> 
				        <input type="submit" value=" 提  交 " name="sub">
				        <input type="button" value=" 返  回 " name="butt" 
				        onClick="javascript:window.location.href='http://localhost:8080/wuliu/newsShow.do?page=0'">
				    </td>
				</tr>		
			</table>
		</form>		
  </body>
</html>















⌨️ 快捷键说明

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