James: Thanks for your nice presentation. I will try it out right away.
regards, rick --- James Childers <[EMAIL PROTECTED]> wrote: > You'll need to do a couple of things: > > 1) (Assuming you're using Struts, of course.) Create > your Java array/collection/whatever in the Action > that gets hit before your JSP page: > List myList = new ArrayList(); > // populate the list, la la la > request.addAttribute("listForJavascript", myList); > return mapping.findForward("success"); // Takes > you to, say, bongabonga.jsp > > 2) In bongabonga.jsp: > <head> > <script type="text/javascript"> > var jsArray = new Array(); // Do you have to init > this? I don't remember. > <logic:iterate id="jsList" > name="listForJavaScript" indexId="idx"> > jsArray[<%=idx%>] = <%=jsList.getYourValue()%>; > </logic:iterate> > </script> > > 3) Debug. This is all from memory. I'm sure there > are some glaring errors here, but this is the > general flow. > > -= J > __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]