Meaningless Drivel is fun!*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes error message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "error message" Watch "error message" New topic
Author

error message

salil verma
Greenhorn

Joined: Jun 03, 2006
Posts: 22
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

Joined: Feb 20, 2002
Posts: 107
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 <%-- --%>


Being defeated is often a temporary condition. Giving up is what makes it permanent.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: error message