• Post Reply Bookmark Topic Watch Topic
  • New Topic

Custom Tags - Comment Problem?

 
Johann Evans
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know if this is just me, but it seems that custom tags cannot be commented out using html comment e.g.
<!-- Testing
<html:html lang="en"/>
-->
The tag will still be parsed by Tomcat - anyway to comment it out without having trouble like the browser rendering the comment or Tomcat parsing the custom tag?
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can use the JSP comment syntax <%-- --%> to ensure that custom tags don't get processed by the container.
Cheers
Simon
 
Johann Evans
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thx!
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!