同一个JSP页面中有一个textarea的name,要在这个页面中获得,要怎么实现,最好不用js,用java
ArrayList<String> Arrayl = new ArrayList<String>(); for(exam e : l) { if(e.getTid().equals("1")) { %> <tr> <td>选择题</td> <td><%=id++ %></td> <td><%=e.getQid() %></td> <td><%=e.getQuestion() %></td> <td> <form action="#" method="post"> <textarea name="answer1">请输入您的答案</textarea> </form> <% System.out.println("获取输入"+request.getParameter("answer1")); Arrayl.add(request.getParameter("answer1")); %> </td> </tr>