首先来看工程结构图:
项目所需要的包,如下所示:
JSP代码:
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
System.out.println("basePath="+basePath);
%>
JsonCase
<select id="select1" onfocus=getFirstFloorValue(this)>
<option value="1">点击取值</option>
</select>