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

大神们帮忙看看,这个页面只要一打开,就显示两次那个table
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Unicorn Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/bootstrap.min.css" />
<link rel="stylesheet" href="../css/unicorn.main.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>

<s:if test="#request.page==null">
<s:action name="showPc" executeResult="true" />
</s:if>

<div id="content1">
<div id="content-header">
<h1>Tables</h1>

</div>
<div id="breadcrumb">
<a href="#" title="Go to Home" class="tip-bottom"><i
class="icon-home"></i> Home</a> <a href="#" class="current">Tables</a>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div class="widget-box">
<div class="widget-title">
<span class="icon"> <i class="icon-th"></i> </span>
<h5>Static table</h5>
</div>
<div class="widget-content nopadding">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>ID</th>
<th>标题</th>
<th>密码</th>
<th>添加时间</th>
<th>备注信息</th>
<th>编辑</th>
<th>删除</th>
</tr>
</thead>
<s:iterator value="pageBean.list">
<tr>
<td><s:property value="pcid" />
</td>
<td><s:property value="title" />
</td>
<td><s:property value=password />
</td>
<td><s:property value="addtime" />
</td>
<td><s:property value="info" />
</td>
<td><a
href="showPc.action?pcid=<s:property value="pcid"/>">编辑</a></td>
<td><a
href="showPc.action?pcid=<s:property value="pcid"/>">删除</a></td>
</tr>
</s:iterator>

<tr>
<td>共<s:property value="pageBean.allRow" /> 条记录</td>
<td>共<s:property value="pageBean.totalPage" /> 页</td>
<td>当前第<s:property value="pageBean.currentPage" />页</td>

<s:if test="%{pageBean.currentPage == 1}">
<td>第一页 上一页</td>
</s:if>
<s:else>
<td><a href="showpc.action?page=1">第一页</a>
</td>
<td><a
h