----- Original Message ----- From: "Rob Rudin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 08, 2003 11:04 PM Subject: [OS-webwork] BeanUtil in WW 1.3
> Got a quick question regarding WW 1.3. I know that the BeanUtil > class expects nested property references to use "/" as the > delimiting character. I'm pretty sure OGNL uses ".", as does > JSTL, and I'd like to use "." as well. > > Parameters are set on an Action in ParameterActionFactoryProxy, > which asks BeanUtil to do the work. > > Is there a convenient replacement for BeanUtil that I could use > to build a new ParameterActionFactoryProxy that expects "." > instead of "/" for nested properties? I'm looking for something > like a single class or a small jar of classes to handle the job > - nothing real big. > The BeanUtil class uses the webwork.util.Query class to parse the expression. That class uses constants like SLASH and PERIOD, so in order to change the parsing you would probably have to start there. Remember that the PERIOD constant is also used twice to indicate the parent object. So you would have to come up with some other characters to indicate the current and the parent objects. The SLASH constant is also used to indicate the root of the stack (if an expression starts with it). Then I know that there is one place in the beginning of the ValueStack.findValue where an expression is set to "." if it is empty, so you would have to change that one as well. With these changes you might be able to use "." instead of "/", but I am not sure since I've never tried it. Then none of the Webwork JSP templates will work of course, so you will have to change them as well. If you try this, please let us know how it turns out. Best regards, Dick Zetterberg [EMAIL PROTECTED] ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork