reg.jsp

来自「用jsp做的一个小例子」· JSP 代码 · 共 58 行

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

<html>
<head>
<base href="<%=basePath%>">

<title>无标题文档</title>

</head>

<body>
<center>
<form action="ProdectServlet?method=regPro"  method="post" enctype="multipart/form-data">
<table width="514" border="1">
  <tr bgcolor="#FFFFFF">
    <td height="28" colspan="3"><div align="center"><strong>添加商品 </strong></div></td>
    </tr>
  <tr>
    <td width="83" height="28" bgcolor="#0066CC">商品名称:</td>
    <td width="280">
 <input type="text" name="p_name">
</td>
    <td width="129">&nbsp;</td>
  </tr>
  <tr>
    <td height="31" bgcolor="#009966">商品价格:</td>
    <td>
    <input type="text" name="p_price">
    </td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td height="39" bgcolor="#0066CC">商品图片:</td>
    <td>
<input type="file" name="p_ipath">
</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td height="259" bgcolor="#3300CC">商品简介:</td>
    <td>
   <INPUT type="hidden" name="p_content" value="&lt;p&gt;&nbsp;&lt;p&gt;">
		<IFRAME ID="eWebEditor1" src="/Jsp_Example/eWebEditor/ewebeditor.htm?id=p_content&style=coolblue&extcss=_example/myeditorarea.css" frameborder="0" scrolling="no" width="550" height="350"></IFRAME>
    </td>
    <td>  &nbsp;</td>
  </tr>

</table>
<input type="submit" value="submit" >
</form>
</center>
</body>
</html>

⌨️ 快捷键说明

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