JSTL+the struts tags and/or struts-el, for me has completely eliminated the need to use scriptlets. Using scriptlets invites the use of business logic in your view (at least, for less experienced programmers). This, IMHO, is a major violation of the MVC paradigm, and programmers doing that should be shot.
This is why you should stay clear of scriptlets, no if's and's or but's. If you design your code correctly, you should be able to live w/out scriptlets. Wednesday, July 23, 2003, 5:37:26 PM, you wrote: RB> yeah, i don't use tags :). But, it looks like one does not have to worry RB> about matching curly braces when using the tag code :). Seriously though, RB> most of the scriplets in my JSPs are minimal, and are just as easy (to me as RB> a Java programer though) as the tags. HTML coders would probably prefer to RB> learn this tag language rather than the subset of the Java language they RB> would need. I'm sure there are other tag uses where the usage is more RB> tag-like. RB> While we are at it, can I bag on a particual type of an EJB or would that be RB> too much for now? :). RB> ranko RB> -----Original Message----- RB> From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] RB> Sent: Wednesday, July 23, 2003 10:09 AM RB> To: [EMAIL PROTECTED] RB> Subject: Ranko like question: What is the sense of some of these tags RB> libs? RB> As Ranko asked, about the redundancy of Struts I would like to know that the RB> heck is the deal with SOME of these tag libs out there? RB> I mean, look at this: <c:if test="${index%2==0}"> and look at this: <% RB> if(index.intValue()%2==0){ %> RB> I like NOT to use Java scriptlets in my JSPs and I am pretty decent at RB> achieving that but RB> if my only resolve of using a "tag" is to have it look like CODE and not a RB> true tag why RB> have people (code maintainers and the original coder in the first place) RB> learn a new "language" RB> and just use a scriptlet? RB> Seeing $var like tag code that makes me think this is some sort of RB> conspiracy so that all the RB> UNIX admins, with their UNIX scripts, who needed new jobs, since WinTel is RB> taking over, starting RB> writing "tag" libraries. RB> I mean really, what is the deal with these so called "tags" that aren't RB> tags? RB> JavaScript was cool when it came out (and wasn't developed by Sun) because RB> if you knew Java then RB> you were about 90% there to being a great JavaScripter. RB> So I say Ranko, are you just as bewildered at this as I am? RB> :-) RB> --------------------------------------------------------------------- RB> To unsubscribe, e-mail: [EMAIL PROTECTED] RB> For additional commands, e-mail: [EMAIL PROTECTED] -- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

