Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

differnce between jstl and struts

 
Vasanthan Ramakrishnan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends

Can anyone one tell me the difference between struts and jstl.

Let me know which one is most suitable to use.

thanks in advance
 
Madhu Sudhana
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

jstl and Struts are diffrent kind of things they cannot be compared

Struts is a framework which implements MVC design pattern

while jstl is a tag library which assists us in bulding jsp pages.
 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy Vasanthan Ramakrishnan,

Welcome to JavaRanch

JSTL - Java Standard Tag Library. As the name suggests, it has been in existence to assist the developers to have their own custom tags as the plain old HTML tags were of limited features. The term 'custom' means purely custom, you can customize the tag of your own with your set of attribtues and meaning which is specific to your application needs.

For example, you could write your own tag something as follows.


<Vasanthan:checkBox name="Vasanth" id="vcbx01" size="20" color="blue"
... /">


The set of attributes and meaning is also customized to yoru own application. You can read about JSTL and its usages to get to know further.

Struts is a web application framework which is believed to completely implement the MVC pattern. For your information, Struts as a framework has its own set of custom tags. To name a few, html taglib, bean taglib, logic taglib etc.,
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Raghavan Muthu:
JSTL - Java Standard Tag Library. As the name suggests, it has been in existence to assist the developers to have their own custom tags as the plain old HTML tags were of limited features.

Sorry, but this is way off the mark.

The JSTL has nothing to do with writing custom tags, and it is not in any way, shape, or form a replacement for HTML.

JSTL is a set of standardized actions (tags) that are intended to replace the use of scriptlets on a JSP page. The core set has actions for conditional processing, iteration, file inclusion, URL construction and more.
[ December 17, 2007: Message edited by: Bear Bibeault ]
 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Bear for correcting me.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic