I did search for help in other threads like this one:
https://coderanch.com/t/279386/JSP/java/Checking-Status-Checkbox However, my problem cannot be resolved by that information.
My
JSP has a form, and when it's submitted, some JSP code at the top of the page handles it with this:
etc, etc.
Most of the form fields are being extracted on the back end in a bean, but now I need to add a checkbox to see which bean to use, so I'm trying to do it in the JSP right after the code above:
etc, etc.
The checkbox HTML code looks like this:
The println statement above says that saveAddrString is null even when I check the box! How could this be?
Update: Ok, so I just don't understand something about getting info out of those form fields, because all of the other fields are null as well. Back in the bean code, it gets all that by parsing through request.getInputStream(), so I'm wondering if my code above is attempting to call request.getParameter at a point where that parameter is already reset. That of course would make me wonder why getMethod still returns POST, but no matter...I can swallow that they would follow different rules. So, if getParameter won't work at that point in my code, then is there anything else I can do (client-side Javascript?) to make sure I can check for that field's value in the JSP code before I choose which bean to pass everything to?
[ September 02, 2003: Message edited by: Stephen Huey ]