這樣寫怎么錯了?
Enumeration<String> attrNames=session.getAttributeNames();
? ? ? ? ? ? ? ? ? ? ? ? while(attrNames.hasMoreElements()){
? ? ? ? ? ? ? ? ? ? ? ? ? ? ?String thisName=attrNames.nextElement().toString();
? ? ? ? ? ? ? ? ? ? ? ? ? ? ?System.out.println(thisName+" ");
? ? ? ? ? ? ? ? ? ? ? ? }
2016-10-27
System.out.println(thisName+" ");
你這語句是輸出到控制臺
輸出到網頁使用的是out.println();
2016-10-27
報什么錯了?