You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Laran Evans <lc...@cornell.edu> on 2004/08/12 17:00:59 UTC

xdoclet and struts forms

I have a struts ActionForm which I would like to markup with xdoclet tags.

The documentation for @struts.form however says "Applies to: Entity 
beans".  Does this mean that the only ActionForm implementations xdoclet 
supports are implemented as EJBs?

Is it reasonable for me to think that I'll be able to generate my entire 
struts-config.xml file via xdoclet?  I would think so.  Or am I going to 
have to define things like my non-EJB ActionForm subclasses, 
global-forwards, controller and message-resources in struts-config.xml 
and have xdoclet add the rest?

TIA

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: xdoclet and struts forms

Posted by Craig McClanahan <cr...@gmail.com>.
On Thu, 12 Aug 2004 13:59:06 -0400, Laran Evans <lc...@cornell.edu> wrote:
> I hear what you're saying.  However, I work in a team of 7 developers.
> If each developer can make changes to the struts-config.xml file we'll
> have 7 people working on the same file at the same time.  If we generate
> the struts-config.xml file with XDoclet we will all in fact be working
> on separate files, with the struts-config.xml file being generated
> consistently, with changes integrated as they're committed to CVS.
>
> I think it's a tradeoff.
>

Another approach to dealing with this tradeoff is to split your
struts-config.xml into functional subsets that match up the way you
divide the other development work.
 
Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: xdoclet and struts forms

Posted by Hubert Rabago <ja...@yahoo.com>.
I'm not saying you should switch the whole team over now, but it might help
you to be aware that you can break down your struts-config.xml into several
files, each containing its own set of form beans and action declarations.  I
usually break it down by functionality, so it's easier for me to find entries
depending on what I'm looking for, and it's easier for different people
working on different areas to work with struts configuration changes.  

- Hubert

--- Laran Evans <lc...@cornell.edu> wrote:

> I hear what you're saying.  However, I work in a team of 7 developers.  
> If each developer can make changes to the struts-config.xml file we'll 
> have 7 people working on the same file at the same time.  If we generate 
> the struts-config.xml file with XDoclet we will all in fact be working 
> on separate files, with the struts-config.xml file being generated 
> consistently, with changes integrated as they're committed to CVS.
> 
> I think it's a tradeoff.
> 
> Rick Reumann wrote:
> 
> > Laran Evans wrote:
> >
> >> I have a struts ActionForm which I would like to markup with xdoclet 
> >> tags.
> >
> >
> > Don't do it:) Seriously, IMO, I think it's a waste. I think it's nice 
> > having one configuration file to look it to set up all my mappings 
> > (your config.xml file). Think about it, using xdoclet if you decide 
> > that after your form submits you'd rather the user forward to a 
> > different page, you end up having to track down the action class and 
> > modify the xdoclet tag and then rebuild. I'd rather modify one simple 
> > xml file. I'm yet to see how xdoclet helps in a Struts environment.
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: xdoclet and struts forms

Posted by Laran Evans <lc...@cornell.edu>.
I hear what you're saying.  However, I work in a team of 7 developers.  
If each developer can make changes to the struts-config.xml file we'll 
have 7 people working on the same file at the same time.  If we generate 
the struts-config.xml file with XDoclet we will all in fact be working 
on separate files, with the struts-config.xml file being generated 
consistently, with changes integrated as they're committed to CVS.

I think it's a tradeoff.

Rick Reumann wrote:

> Laran Evans wrote:
>
>> I have a struts ActionForm which I would like to markup with xdoclet 
>> tags.
>
>
> Don't do it:) Seriously, IMO, I think it's a waste. I think it's nice 
> having one configuration file to look it to set up all my mappings 
> (your config.xml file). Think about it, using xdoclet if you decide 
> that after your form submits you'd rather the user forward to a 
> different page, you end up having to track down the action class and 
> modify the xdoclet tag and then rebuild. I'd rather modify one simple 
> xml file. I'm yet to see how xdoclet helps in a Struts environment.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: xdoclet and struts forms

Posted by Rick Reumann <st...@reumann.net>.
Laran Evans wrote:

> I have a struts ActionForm which I would like to markup with xdoclet tags.

Don't do it:) Seriously, IMO, I think it's a waste. I think it's nice 
having one configuration file to look it to set up all my mappings (your 
config.xml file). Think about it, using xdoclet if you decide that after 
your form submits you'd rather the user forward to a different page, you 
end up having to track down the action class and modify the xdoclet tag 
and then rebuild. I'd rather modify one simple xml file. I'm yet to see 
how xdoclet helps in a Struts environment.

-- 
Rick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org