You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Bailey, Shane C." <SH...@saic.com> on 2003/07/23 17:37:59 UTC

[OT] RE: Ranko like question: What is the sense of some of these tags libs ?

I have ONLY ever run into the JSTL tags on this forum (and in Struts In
Action on pgs 272-273) so I didn't think it was that OT.  Especially since
it can be used with Struts and code examples posted here nearly daily with
no complaint.  I just never went anywhere looking for these tags.

I never told anyone to change the tag lib.  I just see it constantly on this
forum and I was seriously wondering if I just wasn't getting it (the
advantages of having tags written that way).  I don't care that they are on
this forum at all but I just am wondering if others thought it was a weird
way to implement tags.

Sorry, won't happen again.

-----Original Message-----
From: David Graham [mailto:grahamdavid1980@yahoo.com] 
Sent: Wednesday, July 23, 2003 11:33 AM
To: Struts Users Mailing List
Subject: RE: Ranko like question: What is the sense of some of these tags
libs ?

--- "Bailey, Shane C." <SH...@saic.com> wrote:
> 
> I should have put the smiley face closer to the conspiracy statement. 
> That
> was a joke.
> 
> I think having $ in a tag is a skewed perception of a tag.  I have only
> ever
> seen such things in scripts or macros.  I can't remember using a $ in
> anything but a scripting language (personally).
> 
> Anyway, I just look at those tags and cringe.  Wonder why they couldn't
> have
> been written like, well, a real tag?
> 
> I am just trying to understand and play devil's advocate kinda like
> Ranko
> did and therefore why I mentioned him in my original message.  Just
> something I don't see the point in (these untags) and so wondered what
> others thought.
> 
> I guess I should have waited until Friday when people are in a more
> jovial
> mood.

It would also help if you placed [OT] at the front of the subject line. 
IMO, the struts-user isn't a good place to discuss why you like/dislike
the JSTL tags.  It's futile anyways because they're not going to change
the JSTL just because some people are complaining about it on the
struts-user mailing list :-).

I've never had to use an expression similar to the one in your example in
any of my apps.  The JSTL gives you powerful expressions to use when you
need them but most of the time you can get by with simple stuff if you do
most of the work in real Java classes.

David

> 
> -----Original Message-----
> From: David Graham [mailto:grahamdavid1980@yahoo.com] 
> Sent: Wednesday, July 23, 2003 10:27 AM
> To: Struts Users Mailing List
> Subject: Re: Ranko like question: What is the sense of some of these
> tags
> libs ?
> 
> --- "Bailey, Shane C." <SH...@saic.com> wrote:
> >  
> > 
> > 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?
> 
> If you extend your example to use nested properties, maps, lists, etc
> you
> will start to see why the <c:if> tag is easier.
> 
> >
> > 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, 
> 
> This is a rather skewed perception of reality.
> 
> David
> 
> > 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?
> > 
> >  
> > 
> > :-)
> > 
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: [OT] RE: Ranko like question: What is the sense of some of these tags libs ?

Posted by David Graham <gr...@yahoo.com>.
--- "Bailey, Shane C." <SH...@saic.com> wrote:
> 
> I have ONLY ever run into the JSTL tags on this forum (and in Struts In
> Action on pgs 272-273) so I didn't think it was that OT.  Especially
> since
> it can be used with Struts and code examples posted here nearly daily
> with
> no complaint.  I just never went anywhere looking for these tags.

I only consider debates/complaints over the JSTL to be OT (maybe others
don't).  I certainly don't consider questions about combining Struts and
JSTL to be OT.  I can't be the only person who's tired of the "why should
I use JSTL?" or "scriptlets aren't bad." discussions so all I was asking
was for an [OT] marker to help filter them out.

David

> 
> I never told anyone to change the tag lib.  I just see it constantly on
> this
> forum and I was seriously wondering if I just wasn't getting it (the
> advantages of having tags written that way).  I don't care that they are
> on
> this forum at all but I just am wondering if others thought it was a
> weird
> way to implement tags.
> 
> Sorry, won't happen again.
> 
> -----Original Message-----
> From: David Graham [mailto:grahamdavid1980@yahoo.com] 
> Sent: Wednesday, July 23, 2003 11:33 AM
> To: Struts Users Mailing List
> Subject: RE: Ranko like question: What is the sense of some of these
> tags
> libs ?
> 
> --- "Bailey, Shane C." <SH...@saic.com> wrote:
> > 
> > I should have put the smiley face closer to the conspiracy statement. 
> > That
> > was a joke.
> > 
> > I think having $ in a tag is a skewed perception of a tag.  I have
> only
> > ever
> > seen such things in scripts or macros.  I can't remember using a $ in
> > anything but a scripting language (personally).
> > 
> > Anyway, I just look at those tags and cringe.  Wonder why they
> couldn't
> > have
> > been written like, well, a real tag?
> > 
> > I am just trying to understand and play devil's advocate kinda like
> > Ranko
> > did and therefore why I mentioned him in my original message.  Just
> > something I don't see the point in (these untags) and so wondered what
> > others thought.
> > 
> > I guess I should have waited until Friday when people are in a more
> > jovial
> > mood.
> 
> It would also help if you placed [OT] at the front of the subject line. 
> IMO, the struts-user isn't a good place to discuss why you like/dislike
> the JSTL tags.  It's futile anyways because they're not going to change
> the JSTL just because some people are complaining about it on the
> struts-user mailing list :-).
> 
> I've never had to use an expression similar to the one in your example
> in
> any of my apps.  The JSTL gives you powerful expressions to use when you
> need them but most of the time you can get by with simple stuff if you
> do
> most of the work in real Java classes.
> 
> David
> 
> > 
> > -----Original Message-----
> > From: David Graham [mailto:grahamdavid1980@yahoo.com] 
> > Sent: Wednesday, July 23, 2003 10:27 AM
> > To: Struts Users Mailing List
> > Subject: Re: Ranko like question: What is the sense of some of these
> > tags
> > libs ?
> > 
> > --- "Bailey, Shane C." <SH...@saic.com> wrote:
> > >  
> > > 
> > > 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?
> > 
> > If you extend your example to use nested properties, maps, lists, etc
> > you
> > will start to see why the <c:if> tag is easier.
> > 
> > >
> > > 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, 
> > 
> > This is a rather skewed perception of reality.
> > 
> > David
> > 
> > > 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?
> > > 
> > >  
> > > 
> > > :-)
> > > 
> > > 
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site design software
> > http://sitebuilder.yahoo.com
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org