Forgot your password?
typodupeerror

Comment Re:Who still uses structs? Tapestry the way to go (Score 1) 163

[bbqBrain said:] It would be just as fair for me to say you've obviously spent about 6 minutes working with Struts.

You are way off. I have used struts for over a year (and still do) and have been extremely active on the struts mailing lists. Struts has the right idea, but just doesn't provide the same value.

[bbqBrain said:] If there are a lot of scriptlets in the JSPs, something was designed poorly, and it isn't necessarily the framework. Any business logic should be in the action classes. Complex presentation logic should be in custom tags, which can accept parameters; they make very nice reusable components

So, I'm guessing your solution is to use custom tag libraries over scriptlets, right? The only thing lamer than having scriptlets in your JSP files is compiling html into tag libraries. Any complex presentation logic will require you to hardcode html in your java source, no matter how many parameters you pass into a tag. Kinda defeats the purpose of MVC, doesn't it?

Here are the things off the top of my head that need improvement with struts:
-The way ActionForms work and the game you have to play copying values from JavaBeans to FormBeans and vice-versa.
-Poorly named conditional tags like "present" and "notPresent". What does that mean? Empty? Null?
-The logic:iterate tag can't handle nested repetitions. An additional nested tag is required.
-No page wrapping components that allow you to insert page body content. (Tiles won't help you here either)
-There is no equivalent to tapestry's 'rewind' features. You have to re-inflated objects your interested in on every request, which is sooo cumbersome.
-All of the really good struts features are in version 1.1b. Which seems like it will be in beta forever.

Slashdot Top Deals

UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn

Working...