• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tag library

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone

I am developing STruts 1.1 based JSR portlets in RAD 6.
For writing the jsp's what should be used : the c tags(JSTL) or teh Struts logic tags.

We can do same things in both. So what is the difference

Thanks
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I haven't written any portlet using RAD but I know that you can use both JSTL and Struts tags in your JSPs. JSTL tags are used to control the flow of the page like: <c:if>, <c:choose>, ... and Struts tags are used to display information like: <logic:iterator>, ...
 
Dorothy Taylor
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, but we can do the same thing using either of the two. So does this mean that if we are using struts, then using struts taglib is preferable.

When should we choose to use c tags if application is struts based?
 
Nhat Nguyen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Some time, using JSTL is more convenient than using Struts taglib (like: <c:if> and <logic resent>, ...)
Some time, you want to perform an action but JSTL doesn't support (like loop, message resource, ...)
...
So, using JSTL or Struts taglib must be very flexible.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Nhat Nguyen:
... but JSTL doesn't support (like loop, message resource,

I think you'd better bone up on what JSTL supports. Looping? Of course. Messaging? Yes.
 
Nhat Nguyen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh, I'm sorry! I got mistakes. JSTL has loop, message and many features ... Thank Bear Bibeault!
 
Dorothy Taylor
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So which one should be preferred?
Or we can just go with anything of our choice. I think that if we are developing struts based portlets, then we should use struts taglib only. Please let me know if this is wrong
reply
    Bookmark Topic Watch Topic
  • New Topic