Can anyone one tell me the difference between struts and jstl.
Let me know which one is most suitable to use.
thanks in advance
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.,
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 ]