• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL forEach doesn't seem to work

 
Jay Chmiel
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the code I'm trying to execute:

in my browser i see only
${blog.title} ${blog.description}
I know that the collection consists of 3 blogs, so it should appear 3 times, but it doesn't.
I've got jstl.jar and standard.jar in my classpath. Any ideas? Thanks in adv.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jay jazz wrote:



then what is the need for JSTL ? scriptlet in jsp is Deprecated .
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"jay jazz", please check your private messages for an important administrative matter.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
seetharaman venkatasamy wrote:scriptlet in jsp is Deprecated .
I wish, but it isn't.
Or your English is so bad and you probably meant "discouraged" or so.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While not officially deprecated (personally, I would have deprectaed them as of JSP 2.0) they should be considered deprecated and not used in JSP pages.
 
Vinoth Thirunavukarasu
Ranch Hand
Posts: 164
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jay Chmiel wrote:Here is the code I'm trying to execute:


Just change the bellow line
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vinoth Thirunavukarasu wrote:Just change the bellow line

[size=giant]NO[/size].

That will switch you to a previous version of the JSTL. Not what is wanted!


 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bauke Scholtz wrote:Or your English is so bad and you probably meant "discouraged" or so.


Exactly Bauke . sorry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!