think i sent this to the wrong list earlier...

Here's what I'm doing:

int iMaxBookmarks = 25;
Bookmark[] MyBookmarkArray = new
Bookmark[iMaxBookmarks];

while (rs.next())
  {
  MyBookmarkArray[i] = new Bookmark();
  session.setAttribute("MyBookmarkArray[" + i + "]",
MyBookmarkArray);
// set all data for MyBookmarkArray[i] (this works
fine)...

}

// Close the ResultSet
System.out.println("bookmarks done");
rs.close();

in my JSP page I get a NULL POINTER EXCEPTION...

<%=MyBookmarkArray[1].getpk() %> </br>

I have verified there are 3 bookmarks created.

also I can see all my non array session variables just
not this array one... a scope problem?

Also, anyone know of a good JSP Forum? I need to also
figure out how to loop output of the above array
inside the JSP.

thanks in advance.
Rich


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to