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
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: 61095
    
  66

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: 61095
    
  66

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

Joined: Jan 10, 2002
Posts: 61095
    
  66

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

Joined: Sep 07, 2008
Posts: 686


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
 
Don't get me started about those stupid light bulbs.
 
subject: JSTL with struts?