This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Html comment not working in jsp  RSS feed

 
sridhar yenamandra
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my jsp page I commented out some code but still its being executed.
ie., the following statement eventhough its commented it got executed.

<!--<jsp:forward page="process.jsp">-->

I would appreciate if someone could answer me.

Thanks,
Sridhar.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66203
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You really answered your own question. You placed a server-side JSP action in a client-side HTML comment block. The two have nothing to do with each other.

As far as the JSP engine is concerned all non-JSP markup is just template text and has no meaning.

Please read this article.
[ July 01, 2006: Message edited by: Bear Bibeault ]
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP comment syntax:
<%-- Comment string... --%>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!