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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "JSTL with struts?" Watch "JSTL with struts?" New topic
Author

JSTL with struts?

shaf maff
Ranch Hand

Joined: Sep 07, 2008
Posts: 180
Hi Guys

I am trying to use JSTLs in my JSP page which is using struts 2 framework. I want to use the foreach loop to loop through an array of objects but everytime I include the JSTL tag I get the following error:

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

Where did you place the JSTL jar files?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
shaf maff
Ranch Hand

Joined: Sep 07, 2008
Posts: 180
I thought it comes default with java ? I tried downloading it but the links are just confusing.

http://java.sun.com/products/jsp/jstl/downloads/index.html




.
Cendy Van
Greenhorn

Joined: Nov 06, 2007
Posts: 6
Are you using Servlet version 2.4/ JSP version 2.0 (J2EE 1.4) ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

See the JSP FAQ for JSTL setup information.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

"Cendy NVY", please check your private messages for an important administrative matter.
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684


Hi,

Yes, you are right it comes with java but if you are using J2EE 1.5.

If you are use J2EE 1.4 then you have to add jstl jar separately.




Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSTL with struts?
 
Similar Threads
Issue: Populating <s:select> with values from a HashMap
Tiles problem
Struts 2 Jquery integration
Expression parameters.pushId is undefined on line 24, column 6 in template/ajax/div-close.ftl.
How to configure Parameter Interceptor