• Post Reply Bookmark Topic Watch Topic
  • New Topic

for each loop using jstl  RSS feed

 
Ranch Hand
Posts: 144
  • 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: 23124
45
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: 23124
45
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: 66402
156
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.
 
You've gotta fight it! Don't give in! Read this tiny ad:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!