当前位置: 代码迷 >> Java Web开发 >> jsp页面提示500异常
  详细解决方案

jsp页面提示500异常

热度:196   发布时间:2016-04-16 21:49:02.0
jsp页面提示500错误
运行这段代码的时候
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'house' 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="styles.css">
-->

  </head>
  
  <body>
     <div class="main wrap">
     <s:div id="houseArea">
       <table class="house-list">
         <s:if test="null == page || null == page.list || page.list.size<1">
           <tr>
              <td colspan="11"><center>无任何信息</center></td>
           </tr>
         </s:if>
         <s:else>
            <s:Iterator value="page.list" status="status">
            <tr <s:if test="#status.count%2 == 0">  class="odd"</s:if>>
            <td class="house-thumb">
              <span>
                <s:a href="house!show.action?house.id=%{id}">
                   <s:if test='picture.url!=null && picture.url !=""'>
                   <img src='<%=path+"/upload"%><s:property value="picture.url"/>' width="90" height="60" />
                   </s:if><s:else>
                   <img src="<%=path%>/img/thumb_house.gif" />
                   </s:else>
                   </s:a>
                   </span>
                   </td>
                   <td>
                   <dl>
                     <dt>
                        <s:a href="house!show.action?house.id=%{id}">
                        <s:property value="title"/>
                        </s:a>
                     </dt>
                     <dd>
                        <s:if test="street" !=null>
                          <s:property value="street.district.name" />区
                          <s:property value="street.name" />,
  相关解决方案