他妈的jsp,老子要晕了,大哥些帮忙解决一下,关于嵌套查询的问题?
俺,刚从asp传向jsp对于jsp那些东西都不了解,遇到一个嵌套查询问题,用标签或者直接写都不行,他妈的,程序运行会出来,就是值出来不到,真他妈的牛B!
程序代码:最简单的jsp纯asp改版.
<%
ResultSet rs=stmt.executeQuery ( "select * from mobile_xilie where id= "+request.getParameter( "id "));
if (rs.next()){
%>
<table border= "0 " cellpadding= "1 " cellspacing= "1 " bgcolor= "#999999 " align= "center ">
<tr bgcolor= "#F3F3F3 ">
<td align= "center " height= "22 " width= "143 " > <strong> 品牌 </strong> </td>
<td width= "189 " height= "22 " align= "center " > <strong> 型号 </strong> </td>
</tr>
<tr bgcolor= "#FFFFFF ">
<td align= "center ">
<jsp:include page= "xilie_edit_body.jsp "> <jsp:param name= "m_id " value= " <%=rs.getString( "m_id ")%> "/> </jsp:include>
</td>
<td align= "left ">
<input type= "text " name= "xilie_name " size= "25 " class= "Input " value= " <%= rs.getString( "xilie_name ") %> "> </td>
</tr>
<tr bgcolor= "#FFFFFF ">
<td align= "center " colspan= "2 ">
<input type= "submit " value= "确定提交 " name= "B1 " class= "buttonface ">
<input type= "reset " value= "重新填写 " name= "B2 "class= "buttonface " > </td>
</tr>
</table>
include文件代码:
<%
ResultSet rs_m=stmt.executeQuery ( "select * from mobile_type order by id asc ");
if (rs_m.isLast()){
out.println( "请先添加栏目。 ") ;
out.close();
}