自动不全js下载地址
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'index.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="<%=request.getContextPath() %>/resource/lib/jquery.js"></script>
<script type='text/javascript' src='<%=request.getContextPath() %>/resource/lib/jquery.bgiframe.min.js'></script>
<script type='text/javascript' src='<%=request.getContextPath() %>/resource/lib/jquery.ajaxQueue.js'></script>
<script type='text/javascript' src='<%=request.getContextPath() %>/resource/lib/thickbox-compressed.js'></script>
<script type='text/javascript' src='<%=request.getContextPath() %>/resource/jquery.autocomplete.js'></script>
<script type='text/javascript' src='<%=request.getContextPath() %>/resource/localdata.js'></script>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/demo/main.css" />
<link rel="stylesheet" type="text/css"
href="<%=request.getContextPath() %>/resource/jquery.autocomplete.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/lib/thickbox.css" />
</head>
<script type="text/javascript">
$().ready(function() {
var str="method=getData";
var cities=["a12","b13","a14","b14","b13"];
$("#auto").focus().autocomplete(cities);
});
</script>
<body>
<input type="text" id="auto" />
<br>
</body>
</html>