为何我这段传递参数的代码不行!求解
1.jsp:
ResultSet rs=wr.executeQuery("select * from moteziliao " );
while (rs.next()){<table width="200" border="1">
<tr>
<th height="17" scope="col">ddddd</th>
<th scope="col"><a href="2.jsp?id=<%=rs.getString("xingming2")%>"target="_blank"><%=rs.getString("xingming2")%></a></th>
</tr>
</table><%}%>
2.jsp
<%String a=request.getParameter("id");
ResultSet rs=wr.executeQuery("select * from moteziliao where xingming2='"+a+"'");
while (rs.next()){%><%=rs.getString("xingming2")%><%}%>
其中bean是调用数据库的,已经成功。求解