Hello David,

Can you help me with services? A time ago I start services subproject
in commons-sandbox - it will be core lib to build service-oriented
struts architecture. Now we start new project and I have not time
enough to prepare it to the work with struts.
Is it interesting for you?

Sunday, January 20, 2002, 11:43:36 AM, you wrote:

DW> I think this got lost in the DynaBean discussion so
DW> I'm resending it.

DW> --- "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote:
DW> <snip>
>> We should also consider whether it makes sense to
>> integrate the
>> configuration of the validation criteria into
>> struts-config.xml -- not as
>> a *replacement* for the existing mechanism, but as
>> an alternative for
>> Struts based users.
DW> <snip>

DW> Did you have anything specific in mind for the
DW> structure?  I think that this has been mentioned
DW> before, but I wasn't sure how to cleanly include this
DW> in with the struts-config.xml.  The basic information
DW> could be add to the form-bean definitions, but how
DW> would multiple locale validation rules be handled? 
DW> Would there be multiple form-beans that defined the
DW> locale?  

DW> <form-bean name="logonForm"
DW> type="org.apache.struts.action.DynaActionForm">
DW>    <form-property 
DW>       name="username" 
DW>       type="java.lang.String" 
DW>       initial="user"
DW>       depends="required">
DW>        <arg0 key="user.displayname"/>
DW>    </form-property> 
DW>    <form-property 
DW>       name="password" 
DW>       type="java.lang.String">
DW>       depends="required"/>
DW>        <arg0 key="password.displayname"/>
DW>    </form-property> 
DW> </form-bean>

DW> Also since the Validator is in Commons now, something
DW> like this would require maintaining a separate
DW> resource initializer to handle the different xml
DW> structure.  Which might be worthwhile to maintain if
DW> it would enhance usability enough.  If the current
DW> Validator xml structure was just placed as is in the
DW> struts-config.xml, then the main resource intializer
DW> could be made to take a parameter for the xml root to
DW> use (instead of /form-validation to use
DW> /struts-config/form-validation in
DW> ${xml.root}/formset/form/field).

DW> Martin had mentioned in Commons whether or not to move
DW> the Struts Validator interface out of commons and into
DW> Struts proper.  Any thoughts on this?  It was on the
DW> original 1.1 to do list to have a validation framework
DW> built in.  I could go either way, but I think it would
DW> be nice if it was in the core.  Especially since there
DW> are so few classes left since most are in the Commons
DW> now (6 classes plus one or two to be added for a
DW> ValidatorDynaActionForm).

DW> David


DW> __________________________________________________
DW> Do You Yahoo!?
DW> Send FREE video emails in Yahoo! Mail!
DW> http://promo.yahoo.com/videomail/

DW> --
DW> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
DW> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



-- 
Best regards,
 Oleg                            mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to