日期:2014-05-17  浏览次数:20658 次

大家来看看这个问题,是出在页面上还是配置文件上
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<script type="text/javascript">
</script> 
  <head>
  <base href="<%=basePath%>">
   
  <title>景点添加</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="styles.css">
-->

  </head>
  
  <body>
  <center>
  
景点添加
  <form action="<%=path %>/scenery/scenicAdd.action" enctype="multipart/form-data" method="post">
  <table style="text-align: center">
  <tr>  
  <td> 景点名称</td>
  <td> <input type="text" name="scenery.sname"/></td> 
  </tr>
  <tr>
  <td> 交通信息</td> 
  <td> <input type="text" name="scenery.strafficInfo"/></td> </tr>
  <tr>
  <td> 景点设施</td> 
  <td> <input type="text" name="scenery.sfacility"/></td>
  </tr>
  <tr>
  <td> 景点主题</td>  
  <td> <input type="text" name="scenery.stheme"/></td>  
  </tr>
  <tr>
  <td> 景点星级</td>
<td> <input type="text" name="scenery.slevel"/></td></tr>
  <tr>
  <td> 鹏运价格</td> 
  <td> <input type="text" name="scenery.spyPrice"/></td>
  </tr>
  <tr>
<td> 市场价格</td> 
<td> <input type="text" name="scenery.smarketPrice"/></td></tr>
  <tr>
<td> 景点描述</td> 
<td> <textarea name="sdescription" style="height: 100px; width: 200px;"></textarea></td>
  <tr>
<td> 景点图片</td>
<td> <input type="file" name="img"/></td>  
  </tr> 
  <td colspan="2"> 
  <input type="submit" value="提交">
  <input type="reset" value="重置"/> 
  </td> 
  </table>
  </form>
  ${message}
  </center>
  </body>
</html>
以上是JSP页面