my dog learned polymorphism
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
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "error message" Watch "error message" New topic

error message

salil verma

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

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.
I agree. Here's the link:
subject: error message
It's not a secret anymore!