Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

for each loop using jstl  RSS feed

 
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am unable to implement for each loop using jstl for the following code:




@ line 8 it is giving compile time error as -
Multiple annotations found at this line:
- isValid() == false
- isValid() == false
- No end tag (</
core:forEach>).

@line 12 it is giving compile time error as -

Multiple annotations found at this line:
- Missing start tag for
"core:out"
- No start tag (<core:out>).
- No start tag (<core:out>).

please help
 
Sheriff
Posts: 23506
47
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You've got unmatched tags in this line:



But I expect you didn't want "<core:forEach>" to be interpreted as markup there, you wanted it to be interpreted as text, right? In which case you should escape the < and > so it doesn't look like markup. Like so:


 
Paul Clapham
Sheriff
Posts: 23506
47
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also I don't know if you're allowed to put whitespace in the middle of an element name like you did here:



But even if it's allowed (and I suspect it isn't), please don't. I've never seen anybody do that and it's very distracting.
 
Author and ninkuma
Marshal
Posts: 66678
167
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Paul Clapham wrote:But even if it's allowed (and I suspect it isn't), please don't. I've never seen anybody do that and it's very distracting.


Quoted for emphasis! Always follow accepted conventions.
 
This is my favorite tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!