jsp 下拉框查询回显

    < select name="system_id" id="system_id" onChange="getArea()" 
    style="width:100%"data-live-search="true" class="select"
	< option value="">----全部----< /option>
    < c:forEach items="$ {list_jhsystem }" var="jhsystem">
	< option value = "$ {jhsystem.id }"
	
	< c:if test="${jhsystem.id eq system}">selected< /c:if>
	
	>${jhsystem.systemname }
	
    
    
    ----------------Java---------------------
	if ( request.getParameter("system_id").equals("")) {
		request.setAttribute("system", null);
	}else {
		request.setAttribute("system", request.getParameter("system_id"));
	}

你可能感兴趣的:(java)