日期:2014-05-16  浏览次数:20380 次

2个下拉列表一个是select 一个是extjs的弄不明白啦?
<%@ 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 'User_add.jsp' 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">
-->
<script type="text/javascript" src="js/jquery-1.4.3.js">
</script>
<script type="text/javascript" src="js/change.js">
</script>
<script type="text/javascript">
function user() {
var uname = "<%=session.getAttribute("username")%>";
var sname=document.getElementById("city").options[window.document.getElementById("city").selectedIndex].text;
var x=window.document.getElementById("city").value;
if(uname==x)
{
return true;
}else
{
alert("您的权限不够只能查询本市的内容");
return false;
}

}
</script>
</head>

<body>
<a href="/bbs/index.jsp">返回主页面</a>
<center>
<table id="__01" background="images/bg.jpg" width="1024" height="600"
border="0">
<tr>
<td colspan="3" width="1024" height="170"></td>
</tr>
<tr>
<td rowspan="6" width="415" height="510"></td>
<td width="194" height="53"></td>
<td rowspan="6" width="415" height="510"></td>
</tr>
<tr>
<td width="194" height="35">
<s:form action="Allowances_listByUser" namespace="/" method="post"
enctype="multipart/form-data">
<font color="white"> 请输入要查询的姓名:</font>
<input type="hidden" name="type" value=2>
<input type="text" name="allowancesVO.address">
<input type="submit" value="搜索">
</s:form>

</td>
</tr>
<tr>
<td width="194" height="53">
<s:form action="Allowances_listByAddress" namespace="/"
method="post" enctype="multipart/form-data">
<input type="hidden" name="type" value=1>
<input type="hidden" name="allowancesVO.page" value=1>
<input type="hidden" name="username" id="name"
value=<s:property value="#session.user.userName"/>>
<in