Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error Page Configuration  RSS feed

 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I've configured error page in the DD as shown below:


Following are the contents of my notPage.jsp file:

It's quite surprising to note that when I remove the page directive the page is rendered when I type a wrong URL in the browser window. But, with the code as shown above, I get the browser default 404 error page. The only change I'm making is removing or retaining the page directive.


Any help shall be highly appreciated.

Thanks,
Reema
 
Kalpana Balasubramanian
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Reema,

I think you have to include isErrorPage="true" attribute in the page directive. Hope this will work.
 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kalpana,
Thanks for the post!
But, even this won't work. The isErrorPage="true" is used when you are using the implicit 'exception' object.

Any other suggestion shall be highly appreciated.

Thanks,
Reema
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you type the wrong url in the browser then make sure that the url includes the webapp context path in it which has defined the error entry in DD.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If there is an error thrown on the error page, it will not display. Are you sure your page is debugged?
 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rahul and Bear!
Rahul wrote:
When you type the wrong url in the browser then make sure that the url includes the webapp context path in it which has defined the error entry in DD.


Yup, I'm making sure that the context path is correct.

Bear wrote:
If there is an error thrown on the error page, it will not display. Are you sure your page is debugged?

The only change is the page directive: <%@page isELIgnored="false" %>
I don't think there's any error here.

- Reema
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Reema Patel:
The only change is the page directive: <%@page isELIgnored="false" %>
I don't think there's any error here.


You're not thinking the implications of that through,
 
Shrode Lee
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tested in terms of what is described in above,it resolved my same problem successfully.


My english is very very poor,if someone can indicate error for me,i will be very thankful.
[ March 20, 2007: Message edited by: Shrode Lee ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!