My solutions (well I'll know for sure on that just as soon as I get this to compile [unrelated errors]) weren't too terribly hard to find once I figured out good google-fu for my issue. Here are my posts from the same system I was talking about before that show how I accessed the 1 & 2 dimensional arrays (set in a Bean, accessed from a .jsp fragment) in my project:
Okay, a bit of further googling and I think I may have a plausible answer...
I haven't yet had the opportunity to utilize anything from a Bean within a
scriptlet embedded in my JSP, so I'm not sure if this is the right idea or not.
Right now I'm thinking of the following method, though.
Code:
... //unrelated .jsp code
... //related .jsp processing and Bean calls to set up values within the Bean
<%
.. //java conditionals to find out if we're currently displaying this
for (... //java constructs to iterate through array dimentions
{
out.println("<%-- HTML/JSP formatting crap here --%>\n");
out.println(x[counter], ": ", y[counter][counter2], "\n");
}
%>
... //etc, etc, etc
This should dump in the values of x[] and y[][] into the applicable HTML
generated on the fly, no?
----------------------
Reply from a more experienced JREE/JSP developer follows:
for ( dim1 from 0 to x.length ) {
out.print <tr><td>+ x[dim1] + </td><td>
for ( dim2 from 0 to y[dim1].length ) {
out.print y[dim1][dim2] + ","
out.print(</td></tr>)
}
yeah, you got the right idea i think. don't forget to manage yr inner loop
properly.
----------------------
Anyway, hope this helps some others in the future; the documentation on this issue was kind of tough to turn up.