You can't cast to String[]. It does not exist in Java.
Try to use an ArrayList instead.
All JSP pages share the same session. You will always have the variable in session until the session is terminated or until you remove the attribute yourself.
When you want the values back into another page you could use some code like this.
ArrayList list = (ArrayList) session.getAttribute("callername");
Now you have the values in the list. on the second page
Now you can get the value with following code.
<%
Iterator iter = list.iterator();
while(iter.hasNext()){
%>
<input type="text" name="textfield1" value="<%= String.valueOf(iter.next()) %>">
<%
}
%> Last edited by electron33 : Feb 5th, 2008 at 4:40 pm.