运行这个jsp页面的时候
<%@ 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: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" />,
</s:if>
<s:property value="floorage"/>平米<br />
联系方式:<s:property value="contact" />
</dd>
</dl>
</td>
</tr>
</s:iterator>
</s:else>
</table>
</s:div>
<s:include value="page.jsp"></s:include>
</div>
</body>
</html>
出现这个错误
-------------------------------------------------------------------------------------------------------------------------
Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: /house_list.jsp(56,44) Unterminated <s:if tag
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:132)
org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:968)
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1246)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1422)
org.apache.jasper.compiler.Parser.parseBody(Parser.java:1634)
org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:978)
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1246)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1422)
org.apache.jasper.compiler.Parser.parseBody(Parser.java:1634)
org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:978)
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1246)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1422)
org.apache.jasper.compiler.Parser.parseBody(Parser.java:1634)
org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:978)
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1246)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1422)
org.apache.jasper.compiler.Parser.parse(Parser.java:130)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:185)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:326)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs.
------解决思路----------------------
看看s:ifi里面的值或者语法哪些不对
比如下面这个
<s:if test="street" !=null>