> -----Original Message----- > From: Woodchuck [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 10:22 AM > To: struts > Subject: philosophical question/poll about Struts/JSTL, scriptlets > > > sorry to bring this up on a Friday... > > does everyone here have pure Struts/JSTL jsp pages that is absolutely > void of scriptlets?
Every single one but the main layout page, because I haven't figured out a better way to use tiles putList. I avoid them like the plague.... they're almost, imho, as bad as javascript. Then again I have nightmares about out.println("<html>")....... > > or do you have jsp pages that use a combination of Struts/JSTL and > scriptlets, all living together harmoniously using whichever method is > easiest/cleanest? Depends.. I turn everything over to a html person. The lesss scriptlets I use the happier she is. > > is mixing Struts/JSTL with traditional scriptlets a bad thing? I thinks so... ymmmv > > i have to say that i would prefer to *not* mix scriptlets with > Struts/JSTL but in some situations it seems scriptlets is the better > solution (in terms of code maintainability). that is, it would be > easier to use a little snippet of scriptlet here and there instead of > making a round-about (albeit clever) and more verbose way of doing the > same thing without scriptlets... Depends on what you're talking about.. and who you're talking about. If your code is never going to be seen by anybody but java programmers,then you may be correct. > > any opinions is welcome! i want to be able to sleep without > nightmares > about this!! :) Most programmers would probably find that the scriptlets are somewhat easier...however I also look at tags as method calls, in terms of encapsulation. I don't need to know what they do, just that they do it. I don't really care how <html:radio generates a radio html bit, just that it does so in a manner that makes my life easier, like only having to know the property name etc. etc. I have several tags that print lists of things.... change the tag and I've changed the way the lists are retrieved. That can be harder to do in a scriptlet. Using scriptlets, to me is like going back to the bad old days of out.println("<html");. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]