You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by jack jack <ja...@hotmail.com> on 2000/07/13 06:26:12 UTC
setProperty and
Perhaps this is more of a problem with the JSP Spec, but setting properties
on a bean with jsp:setProperties for a form with multiple image submit
buttons seems to be an impossibility.
Specifically, the problem is that forms with image inputs produce strings in
the request object that look like "blah.x=10 blah.y=23" (mouse position)
where regular submit buttons just produce "blah=value". Naming methods in
the bean getBlah.X() and getBlah.Y() doesn't work, since the "." has special
meaning in Java.
For forms with only one image submit, adding a hidden tag with the same name
seems to fix the problem. For forms with multiple image submit buttons,
there doesn't seem to be a good fix.
It also looks like setting the properties with parameter="blah.x" could be
promising, but this is rather awkward since it means that *all* other
properties for the bean must also be set individually.
How does tomcat handle request parameters with names containing periods in
relation to <jsp:setProperty name="blahBean" property="*"/>? How should
they be handled?
Thanks!
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com