• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL with struts?

 
shaf maff
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did you place the JSTL jar files?
 
shaf maff
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using Servlet version 2.4/ JSP version 2.0 (J2EE 1.4) ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the JSP FAQ for JSTL setup information.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Cendy NVY", please check your private messages for an important administrative matter.
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic