Here's a rudimentary wrapper tool. The commented out section is used when wrapping for Struts 1.0.x -- 1.1 does a much better job there. I still have hardcoded the file masks (I assume all VO's end in Value.java). And I assume that all wrapped getters have corresponding setters. What can I say...I got lazy when I got it working and went back to solving the business problems on this app... :)
John M. Corro wrote: >We have a bunch of existing beans that we'd like to use w/ ActionForms. For each >bean we'll need to obviously expose the getters/setters in the corresponding >ActionForm. The ideal scenario we'd like to see happen is prevent the ActionForms >from having all the corresponding getters/setters hardcoded into it. We're ok w/ >coding the validate() method for each class by hand, but we'd like to avoid having to >code each ActionForm w/ a getter/setter (even if it is templated out for us by a >Struts plug in or even a custom written batch file). > >Has anyone implemented something like this? >
StrutsGen.java
Description: java/
StringDate.java
Description: java/
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>