文本框autoComplete,接收后台list转换成js数组

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


	   
	 jQuery UI Autocomplete - Default functionality  
	 
	    
	    
	      
	      <%
	      	List list = new ArrayList();
	      	list.add(new String("猪八戒"));
	      	list.add(new String("孙悟空"));
	      	String[] arr = (String[])list.toArray(new String[list.size()]);
	      	
	       %>
	       
	        
      
      
       

你可能感兴趣的:(web)