What's really so wrong with scriptlets?
-----Original Message----- From: Mike Jasnowski [mailto:[EMAIL PROTECTED] Sent: 23 July 2003 15:30 To: Struts Users Mailing List Subject: RE: Ranko like question: What is the sense of some of these tags libs? IMO, I wouldn't take examples like that as a "best" practice for using tags. In some cases I think people sometime try to squeeze too much functionality out of a set of tags, rather than creating higher-level tags to accomplish what they want. Or there might be shortcomings in the tags they're using to achieve it in a cleaner way. >if my only resolve of using a "tag" is to have it look like CODE and not a >true tag why Why not write/refactor the tag to do what you want? Why do you have to resort to scriplets? -----Original Message----- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 10:09 AM To: [EMAIL PROTECTED] Subject: Ranko like question: What is the sense of some of these tags libs? As Ranko asked, about the redundancy of Struts I would like to know that the heck is the deal with SOME of these tag libs out there? I mean, look at this: <c:if test="${index%2==0}"> and look at this: <% if(index.intValue()%2==0){ %> I like NOT to use Java scriptlets in my JSPs and I am pretty decent at achieving that but if my only resolve of using a "tag" is to have it look like CODE and not a true tag why have people (code maintainers and the original coder in the first place) learn a new "language" and just use a scriptlet? Seeing $var like tag code that makes me think this is some sort of conspiracy so that all the UNIX admins, with their UNIX scripts, who needed new jobs, since WinTel is taking over, starting writing "tag" libraries. I mean really, what is the deal with these so called "tags" that aren't tags? JavaScript was cool when it came out (and wasn't developed by Sun) because if you knew Java then you were about 90% there to being a great JavaScripter. So I say Ranko, are you just as bewildered at this as I am? :-) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]