📄 purchase_seletproshow_ajax.jsp
字号:
<%@ page language="java" contentType="text/html; charset=GB2312"%>
<jsp:directive.page import="java.util.ArrayList"/>
<jsp:directive.page import="com.captainli.dboperation.ProduitDA"/>
<jsp:directive.page import="com.captainli.bean.ProduitBean"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<title>Insert title here</title>
</head>
<body>
<% if(request.getParameter("p_sc_id").toString().equals("0")){%>
<select name="p_name" size="100" id="p_name" style="height:140px; width: 200px "></select>
<%}else{
ArrayList arry = new ProduitDA().showProduitSc(Integer.parseInt(request.getParameter("p_sc_id").toString()));
%><select name="p_name" size="100" id="p_name" style="height:140px; width: 200px " ondblclick="return show()">
<%
for(int i = 0;i < arry.size();i++){
ProduitBean bean = (ProduitBean)arry.get(i);
%>
<option value="<%= bean.getP_name() %>"><%= bean.getP_name() %></option><%} %>
</select>
<%} %>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -