You won't win me over with putting metadata in Struts Actions that 
relate to the form :)  I'm philosophically opposed to the generation of 
Action mappings, even, so I don't think its a good idea to put form bean 
information there either.

But it could easily be done, even with a custom template without any 
modifications to XDoclet at all.  So have at it if you want this.

It seems you're after a metadata level above the source code that is a 
one-stop place for form definitions... my argument would be that you're 
talking about struts-config :)

        Erik


Derek Lin wrote:
> I think generating the form entries for the struts-config.xml from the
> Action classes makes sense.  Because the Action classes are where the logics
> are.  I don't want to mess with other things.  What do you think?
> 
> I see your point of this not being too beneficial.  I guess I just want to
> manage the whole thing from one location, rather than all over the places.
> 
> But it seems like this is a requested feature.  I'll wait to see what comes
> out in the end.
> 
> Thanks,
> 
> Derek
> ----- Original Message -----
> From: "Erik Hatcher" <[EMAIL PROTECTED]>
> To: "Derek Lin" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Thursday, October 10, 2002 8:38 AM
> Subject: Re: [Xdoclet-user] struts form
> 
> 
> 
>>Do you mean dynamically generate this from some kind of source code?  If
>>so, what kind of class do you see it processing to generate this?
>>
>>Or statically insert that into struts-config.xml?  Yes, it can do that
>>already by using the struts-forms.xml merge file.
>>
>>If you're using all dynamic forms like this, then there is probably
>>little if any benefit to using XDoclet to generate struts-config.xml.  I
>>  only use XDoclet to generate the form bean definitions at the moment.
>>
>>Erik
>>
>>
>>Derek Lin wrote:
>>
>>>If anyone has be using xdoclet with struts extensively, can you please
>>>advise the following?:
>>>1)  can xdoclet write the dynavalidatorform into the struts-config.xml
>>
> like
> 
>>>the following?
>>>        <form-bean
>>>            name="loginForm"
>>>      dynamic="true"
>>>            type="org.apache.struts.validator.DynaValidatorForm">
>>>         <form-property name="email" type="java.lang.String"/>
>>>         <form-property name="password" type="java.lang.String"/>
>>>    </form-bean>
>>>
>>>Thanks,
>>>
>>>Derek
>>>
>>>
>>>-------------------------------------------------------
>>>This sf.net email is sponsored by:ThinkGeek
>>>Welcome to geek heaven.
>>>http://thinkgeek.com/sf
>>>_______________________________________________
>>>Xdoclet-user mailing list
>>>[EMAIL PROTECTED]
>>>https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>>>
>>>
>>
> 
> 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to