Hi Douglass, OGNL/XWork/WebWork2 doesn't support this, but we needed this kind of support in our (Swing) app, so we have patched OGNL to support this kind of "mapped property". Basically, your tag would look like:
<ui:textarea label="'an editor'" name="html['editor']" value="html" rows="20" cols="80"/> The patch is *very much* a hack but it seems to be working OK for us, and I can provide you with a patched ognl.jar + source if you want to (OGNL is kind of tricky to compile, and the code is... hairy, so it might be easier just to use the patched jar). We'll submit the patch to OGNL eventually, if we can do it without embarrasing ourselves too much ;-) cheers, /Måns > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > Robert Douglass > Sent: den 9 juni 2003 21:29 > To: WebWork > Subject: [OS-webwork] Setters that take 2 parameters in Actions > > > The action that I've written would like to have a setter called with 2 > parameters. How do I write a JSP tag that passes populates this method > correctly? Is this even possible? > > the setter: > public void setHtml(String id, String html) {... > > the jsp before I got the idea that setHtml needed String id as well: > <ui:textarea label="'an editor'" name="'editor'" value="html" rows="20" > cols="80"/> > > thanks, > > Robert Douglass > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork