aspose file tools
The moose likes Struts and the fly likes Struts tags or JSTL tags Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Struts tags or JSTL tags" Watch "Struts tags or JSTL tags" New topic
Author

Struts tags or JSTL tags

A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 973
Hi,

Which among these 2 is widely used..and which is better of the two..?

Regards
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The general consensus seems to be this:

In a case where a JSTL tag and a Struts tag can both perform the same task, the JSTL tag is preferred.

Why? JSTL is the standard for all Java EE applications and EL expressions are now part of the JSP specification. Because they are more standard and more part of mainstream Java EE, they are preferred. Besides that, especially in the case of conditional execution (c:if, c:choose, etc.) they are much more flexible and powerful than the struts <logic:xxx> tags.

Obviously,though, there are many Struts tags that do not have a JSTL equivalent such as the <html:xxx> tags. Naturally these tags will be used extensively in a Struts application.

If you use the search function on this forum, you will see several other threads which generally agree with my position.


Merrill
Consultant, Sima Solutions
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 973
Thanks Merrill!!!

In our applications...we made use of normal html tags(form,input,etc)..and
jstl tags in our jsp...

We didnt use the struts tags....I believe even this approach is fine...

Also Struts tags are for fetch -only..

What do you say?

Regards
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Struts tags or JSTL tags
 
Similar Threads
which custom tags in struts are the most important and the most necessary?
Doubt on Tags
<action-mapping>
simple tags Vs Classic tags
Custom Tag