Scusa l'ignoranza... ho provato a fare cosi:


codice:
<%!
           int[] a = (int[])session.getAttribute("array"); 
            
        %>
         <%  for(int i=0; i<50; i++)
           out.println(a[i]);
           %>
e mi da quest'errore:
cannot find symbol
symbol : variable session
location: class org.apache.jsp.vet_jsp
int[] a = (int[])session.getAttribute("array");


poi ho provato in quest'altro modo:

codice:
<%
           int[] a = (int[])session.getAttribute("array"); 
           for(int i=0; i<50; i++)
           out.println(a[i]);
           %>
e mi dice:

The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Exception in JSP: /vet.jsp:17

14: <h1>Vettore</h1>
15: <%-- Object a = (Object[])session.getAttribute("array");--%>
16: <%
17: int[] a = (int[])session.getAttribute("array");
18:
19:
20: for(int i=0; i<50; i++)


Puoi aiutarmi? sono disperato!!!