Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

paedirective isErrorPage works but only partially

 
Ram Gokul
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my JSP I have this directive:

1) <%@ page isELIgnored="false" errorPage="untitled2.jsp"%>

......
when i hit the following code ,
<% int i = 1/0; %>

I get routed to the proper error page - untitled2.jsp . This is as per expectations.
--

But when i put this line of code ,

<jsp:include page="non_existant.jsp">
<jsp aram name="welcome_title" value="Welcome Ram !!"/>
</jsp:include>

I get the standard 404 - Page not found error code .

Why did it work - the automatic routing of error page - when i hit a divide-by-zero error and not for 404-Error code ? ( i dont have any code in DD for error pages )

Can someone explain ?

Thanks
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For Http error code's you got to configure it in web.xml.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic