Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error message

 
salil verma
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i try the follwoing code in the error page it runs fine.





but when i add the following section in the <body> </body> tag

<!---
<br>
now trying thwough EL</br>

<c ut value=requestScope["javax.servlet.error.message"]>
</c ut>
-->


The page is not taken as error page. and displays the error message .The total section is HTML commnet the why m i gettin such an error?

Can any body help me out regarding this.
 
Mohd Fuzail
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTML comments <!-- --> are evaluated by Servlet Container and send to Client where its not displayed

To avoid evaluation of JSP code fragment in comment use JSP comment <%-- --%>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic