I have another problem with beans if anyone is interested.
My
JSP (Validate.jsp) collects user information from another JSP, then it creates a bean.
My
servlet(Spreadsheet.java) now recieves the bean, and its properties are displayed.
The problem is, the servlet(Spreadsheet.java) only displays the bean, when the page is loaded, so if many users enter information, the single bean I'm using will just keeping changing, and only the latest version will be displayed when Spreadsheet.java is executed.
I'm not keen on using multiple beans, and them letting the servlet display the properties for all of them when it is loaded, for 2 reasons:
1. I would need to name each bean object, seperately
2. This may in principle require thousands of beans.
I would like the bean (after its properties have been set) to have its properties stored in an array perhaps, in the servlet.
Is this approach possible??? any thoughts are welcome.