This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Just want to survey how many people feel that Xdoclet is a must for Struts project. I feel that it is very important since I can keep everything in just 1 single source file rather than maintaining information spreaded across ActionForm, struts-config.xml and manually making sure they are in sync. But it seems that not many people post questions relating to Xdoclet so I guess it isn't widely used. Just want to hear the opinion from other people.
I love XDoclet, although the applications I used it on weren't the most complex in the world. After using it the first time, I felt I'd never do another project without it. I guess I should have said "never without something like XDoclet." I never hit any of those roadblocks myself.
I'd definitely say that using an XDoclet type of technology is a must. But I guess there's always value in looking at similar alternatives.
Joined: Jan 28, 2004
I used Xdoclet for EJB, too. But does Struts project also need Xdoclet? I heard that some people don't like it for Struts.
The main reason I don't use Xdoclet in my Struts applications is that I have other Struts tools that handle the creation of entries in my struts-config.xml file.
I use IBM's Rational Application Developer which has a nifty tool that lets me draw diagrams connecting web pages, Action classes and ActionForms and then creates entries in struts-config.xml file from those diagrams. I almost never touch the actual XML.
I have to vote that it is not a must since I do not use it. Maybe I am missing out on something. Do you use XDoclet to generate anything other than your struts-config.xml (like tiles-defs.xml or validation.xml)? Do you put XDoclet tags in both your Action and ActionForm classes? I often have several action mappings that use the same action class but have different parameter and validation attributes and maybe a different set of forwards. Can you do this with XDoclet?
Anybody have some sample Struts XDoclet examples they want to share?