It looks like you trying to put each bookmark under a name in your session like this:
MyBookmkarArray1 - www.ll.com MyBookmkarArray2 - www.gg.com MyBookmkarArray3 - www.kk.com MyBookmkarArray4 - www.aa.com I don't think you want to do this. See my changes to your code below But you would be better off creating an container for your bookmarks such a s BookmarkManager that you could store in a session. d. Richard Diaz wrote: > 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(); > > // set all data for MyBookmarkArray[i] (this works > fine)... > > } // ok so now you've set up the array so // put the Bookmark array into a session session.setAttribute("MyBookmarkArray", MyBookmarkArray); > > // Close the ResultSet > System.out.println("bookmarks done"); > rs.close(); > > in my JSP page I get a NULL POINTER EXCEPTION... > // load a local variable from session <% Bookmark [] bookmarkArray = (Bookmark[]) session.getAttribute("MyBookMarkArray"); %> > <%= bookmarkArray[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 > > > -- David Mossakowski [EMAIL PROTECTED] Instinet Corporation 212.310.7275 ___________________________________________________________________________ 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