Home > Back-end >  JSPS unable to remove the servlet request. The value set in the setAttribute
JSPS unable to remove the servlet request. The value set in the setAttribute

Time:09-28

The Servlet:
ArrayList Flist=Shop_Productdao. SelectAll ();
Request. SetAttribute (" flist "flist);
Request. GetRequestDispatcher (" 1. JSP "). The forward (request, response);
System. The out. Println (flist);
Output collection flist is of value, is to be able to out,


The JSP:

The ${p. roduct_id} & lt;/td>
The ${p. roduct_name} & lt;/td>
The ${p. roduct_price} & lt;/td>
The ${p. roduct_stock} & lt;/td>
The ${p. roduct_type} & lt;/td>



Try once, directly in the JSP page request, the setAttribute method is ok, can come out, is to take out the background of · · · · · ·

CodePudding user response:

Our great god help, collapse of the whole people

CodePudding user response:

refer to the original poster weixin_44164022 response:
try once, directly in the JSP page request, the setAttribute method is ok, can come out, is to take out the background of · · · · · ·


Complete program posted, how can you capture a see trouble?
  • Related