WebWork Tutorial makes it look easy
I have to admit that this webwork tutorial makes WebWork look easy. In comparing this to Struts, it seems as if the Form and Action are the same thing. I wonder if I could use BeanUtils.copyProperties(wwAction, POJO)
like I am with Hibernate/Struts currently.
The funny thing is that XDoclet has made it so easy (IMO) that I don't write ActionForm's anymore. All I really write is Actions, JSPs, DAOs and Services (a.k.a. Managers). So, with my current architecture I'm using, it actually looks like more work to use WebWork's Actions than Struts Actions. Especially since I have to write my validation in my Action. The XDoclet/Validator combo makes this super simple with Struts (and would with WW if they'd adopt it ;-). The only time I've been writing forms lately is when I have a form with indexed properties. Then I create a childForm that extends the generated form and has the appropriate accessors/mutators for the indexed properties.
The one thing the article does bring to light is how much cleaner Velocity is. JSP 2.0 will make JSP's a lot easier, but Velocity looks like it's already there. The one thing that worries me about using Velocity is that, according to their homepage, they haven't had a release in 8 months and their last release was a Release Candidate. What the?! Seems like someone might be dropping the ball on that project.
Hey Matt,
You should definately check out webwork 2 (+ xwork). We're using (we'll they're, I'm trying to help out as much as possible :)) using Ognl, which is a lot quicker and more robust then what ww 1.x uses.
The new xwork (which webwork is built on) has an awesome validation framework built into it now, not too mention the ability to define and use you own interceptors.
The Tag library used Velocity to render its html elements, so it doesn't suffer from the JSP taglib performance hit.
It's been promoted out of the sandbox. An XDoclet module will be in the works soon. After its released, I think... Later!
Posted by Rick Salsa on March 30, 2003 at 07:53 PM MST #
Posted by crb on March 31, 2003 at 03:48 AM MST #
Posted by 219.94.111.118 on June 30, 2006 at 06:36 AM MDT #
Posted by Gökhan on October 05, 2010 at 02:28 PM MDT #
Posted by Gozzie on October 05, 2010 at 02:28 PM MDT #
Posted by Gozzie on October 05, 2010 at 02:37 PM MDT #