Enumeration e = session.getAttributeNames();
{
while(e.hasMoreElements())
{
%>
<tr>
<%
book = (String)e.nextElement();
if(book.equals("userid"))
{
continue;
}
String book_price = (String)session.getAttribute(book);
price_cast = Integer.parseInt(book_price);
%>
.
.
.
.
<td><input type="hidden" name="book_name" value=<%=book %> />
<td class="iron"><input type="submit" value="Update" /></td>
<% String str1 = request.getParameter("book_name");
out.println(str1);
%>
假设书的价值是“被鬼魂追踪”。然后在book_name中接收它,输出只是“Stalked”而不是“Stalked by Spirits”。请帮帮我。
答案 0 :(得分:0)
<\td>
的结束<td>