enumeration为什么不能用 5
Anerroroccurredatline:20inthejspfile:/cds.jspEnumerationcannotberesolvedtoatype17:<ah...
An error occurred at line: 20 in the jsp file: /cds.jsp
Enumeration cannot be resolved to a type
17: <a href=cds.jsp? itemName=emptyCart>Empty Shopping Cart</a>
18: <% String item=request.getParameter("itemName");
19: if(item!=null&&item.equals("emptyCart")){
20: Enumeration attributeNames=session.getAttributeNames();
21: while(attributeNames.hasMoreElements()){
22: String attributeName=(String)attributeNames.nextElement();
23: session.removeAttribute(attributeName); 展开
Enumeration cannot be resolved to a type
17: <a href=cds.jsp? itemName=emptyCart>Empty Shopping Cart</a>
18: <% String item=request.getParameter("itemName");
19: if(item!=null&&item.equals("emptyCart")){
20: Enumeration attributeNames=session.getAttributeNames();
21: while(attributeNames.hasMoreElements()){
22: String attributeName=(String)attributeNames.nextElement();
23: session.removeAttribute(attributeName); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询