Solved

What is the scope of <%@ page errorPage="" %>? Does it get passed to jsp:forwarded pages? Does it get passed to jsp:included pages?

Posted on 2004-08-14
4
257 Views
Last Modified: 2010-04-01
thanks
sudha
0
Comment
Question by:sudhaker
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 14

Accepted Solution

by:
sudhakar_koundinya earned 125 total points
ID: 11801840
The errorPage="SomePage" attribute can be present in either the JSP that includes or forwards to another JSP OR in the included or forwarded JSP OR in both the parent/calling JSP and the JSPs included/forwarded. In all these cases the attribute will work .  The control will 'not be' redirected to the errorPage specified from these JSP pages, in case the exception is explicitly caught in them. To redirect the control to the errorPage either do not catch an exception in the JSP page OR throw an exception explicitly. I did some experimentation and found out that errorPage is passed on to forwarded and included pages. The forwaded or included page can always override the errorPage with own <%@ page errorPage="errorPage.jsp" %> directive.

And also note that This is not equivalent to try{} catch(Exception ex) {Response.sendRedirect("error.jsp"); } as response.sendRedirect("error.jsp") will redirect the response to other page - is like forward. While <%@ page errorPage = .... is like include.
0
 

Author Comment

by:sudhaker
ID: 11801841
Hmmm
0
 

Author Comment

by:sudhaker
ID: 11801847
ok i understand that
0
 

Author Comment

by:sudhaker
ID: 11801848
just got a silly doubt
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question