运行这段代码的时候
<%@ 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" />,