Okay, I've kind of got 2 requests in this post:
- First, does anybody have a code example of a bean setting values to an array (of pretty much any data primitive) and then passing that back for display or other utilization from a pure .jsp file? I believe that I was looking in the wrong areas previously for where my bug might lie. More reading over the Xmas break has led me to believe that I'm not currently passing the values, and/or not utilizing the Bean coding style properly when it comes to method declaration and utilization.
- Last, a simple question without code examples to dig through: I'm attempting to utilize a bean in which I am setting several values for processing with a <jsp:useBean ...> and <jsp:setProperty ...> ... chunk of tags within a .jsp. After this point, I use a scriptlet to call a method from within that same bean class; this is not a public ... getWhatever() or public ... setWhatever() method; I have coded it in the style of a normal java method. After getting to this point, I have attempted to access that method for processing through a <% ... %> embedded scriptlet, and through putting code that calls these other methods from within a method I called getHttpBuffer() which is supposed to return a string value after calling the processing methods. None of these methods are returning anything except for nulls. The only values that I can bring back are the ones that I have explicitly set with <jsp:setProperty> and the corresponding bean method, at least when attempting to access these properties through <jsp:getProperty> and/or a <% ... %> embedded scriptlet.
Any pointers on where I might be screwed up here would be very much appreciated.
Damon Getsman - ITRx
Programmer/IT Customer Relations/Linux & Solaris Sysadmin