Scusa l'ignoranza... ho provato a fare cosi:
e mi da quest'errore:codice:<%! int[] a = (int[])session.getAttribute("array"); %> <% for(int i=0; i<50; i++) out.println(a[i]); %>
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:
e mi dice:codice:<% int[] a = (int[])session.getAttribute("array"); for(int i=0; i<50; i++) out.println(a[i]); %>
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!!!
![]()