| View previous topic :: View next topic |
| Author |
Message |
mirko.calvaresi Guest
|
Posted: Tue Dec 21, 2004 12:33 pm Post subject: Problema con casting di Enumeration |
|
|
Eseguendo questa pagina in Tomcat ricevo un errore abbastanza
org.apache.jasper.JasperException
il problema avvnete al momento del casting dell'oggetto
sessionN.nextElement();
Dove sbaglio?
Grazie a tutti
<%@ page contentType="text/html; charset=iso-8859-1" language="java"
import="java.util.*" errorPage="" %>
<%
Enumeration sessionN=session.getAttributeNames();
while(sessionN.hasMoreElements()){
String sn=(String)sessionN.nextElement();
out.println(sessionN.nextElement()+":"
+"
");
}
%>
|
|
| Back to top |
|
 |
Giambo Guest
|
Posted: Tue Dec 21, 2004 8:02 pm Post subject: Re: Problema con casting di Enumeration |
|
|
mirko.calvaresi wrote:
Richiami due volte nextElement() all'interno del ciclo while.
--
Giambo - Occhio al filtro antispam _e_ alla whitelist !
|
|
| Back to top |
|
 |
|