File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Struts and JSTL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Struts and JSTL" Watch "Struts and JSTL" New topic
Author

Struts and JSTL

Neil Guinto
Greenhorn

Joined: May 14, 2001
Posts: 10
I used struts tag lib but no JSTL yet, I want to and liked to know how does this all fit right now in the overall Struts framework?
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
The Struts EL taglibs included in 1.1 was added to make it easy to use Struts with the JSTL. According to their development roadmap, "it is expected that Struts 2.0.x will rely on JSTL and the JavaServer Faces API as supporting technologies."
Payam Fard
Ranch Hand

Joined: Jan 31, 2003
Posts: 73
So, there would be no overlap among Java Server Faces, JSTL and Struts. Is that right? How are they different from one another?
Thanks,
Payam.
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
Originally posted by Payam Fard:
So, there would be no overlap among Java Server Faces, JSTL and Struts. Is that right? How are they different from one another?

Check out this link, which should help answer your questions.
David Geary
Author
Ranch Hand

Joined: Apr 23, 2003
Posts: 45
Originally posted by Payam Fard:
So, there would be no overlap among Java Server Faces, JSTL and Struts. Is that right? How are they different from one another?
Thanks,
Payam.

There's plenty of overlap between JavaServer Faces (JSF) and Struts and between JSTL and Struts (but not between JSF and JSTL).
Many of the JSTL tags were inspired by Struts tags. You can essentially think of the JSTL tags as (arguably) better versions of some of the Struts tags. In fact, many of the Struts tags will be deprecated in favor of JSTL tags.
Much of JSF is also inspired by Struts. Essentially, JSF is a better version of Struts (or at least it will be--those of us on the JSF expert group realize the current EA has issues and we're addressing them) with a server-side component model somewhat like the Swing component model.
You can also use JSF components with Struts via a tag library implemented by Craig McClanahan. That way, if you're a Struts die-hard, you can stick with Struts instead of switching to JSF, but still take advantage of all the cool JSF components (like trees, calendars, etc) that are being developed.


David Geary Sabreware, Inc<br /><a href="http://www.corejsf.com" target="_blank" rel="nofollow">http://www.corejsf.com</a><br /> <br />Author: Graphic Java Series, Advanced JavaServerPages, Core JSTL and Core JavaServer Faces
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts and JSTL
 
Similar Threads
How to use Struts-EL tag in web application ??
JSTL and Struts Tags
struts tag library vs JSTL
About checkboxList...
Problem with c:forEach tag