• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

body-content tag in a TLD

 
Charith Fernando
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

referring to the body-content tag in a custom tag what are the rules...

for custom tags i know that it is a must to put that tag and have to specify one of the 4 options...

but for tag files the default is scriptless and can specify either empty or tagdependent.....

am i thinking down the correct line?
 
Rajasekhar Pentakota
Ranch Hand
Posts: 38
Java MyEclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

finally It runs well.

we need not specify the error-page tag in web.xml.

we just need to configure the IE options Advanced tab. in that uncheck friendly error messages .

index.jsp
<%@ page errorPage="errorhandler.jsp" %>
<html>
<body>
<%
int s=0;
if (s==0){
throw new RuntimeException("Name Not Specified");
}
%>
</body>
</html>



errorhandler.jsp

<%@ page isErrorPage="true" %>
<html>
<body>
Unable to process your request <br>
Please try again.
</body>
</html>

x()
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic