Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSF
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JSF
Not Redirecting to error page
Suresh Khant
Ranch Hand
Posts: 118
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi All,
I have redirected the errors to error pages . in some cases the application will redirect the errors to the error pages and sometimes it wont !!!
lets take for example
the error is
Caused by: javax.el.ELException: /pages/listStudents.xhtml @50,29 value="#{studentsInfoBean.StudentsInfo}": Error reading 'StudentsInfo' on type com.test.web.bean.StudentsInfoBean at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76) at javax.faces.component.UIData.getValue(UIData.java:582) ... 58 more Caused by: java.lang.NullPointerException
web.xml
<!-- this is to handle the errors and exceptions starting --> <error-page> <exception-type>java.lang.Throwable</exception-type> <location>/pages/common/error500.html</location> </error-page> <error-page> <error-code>500</error-code> <location>/pages/common/error500.html</location> </error-page> <error-page> <error-code>404</error-code> <location>/pages/common/error404.html</location> </error-page> <error-page> <error-code>400</error-code> <location>/pages/common/error404.html</location> </error-page> <error-page> <exception-type>javax.servlet.ServletException</exception-type> <location>/pages/common/error500.html</location> </error-page> <error-page> <exception-type>javax.faces.FacesException</exception-type> <location>/pages/common/error500.html</location> </error-page> <error-page> <exception-type>java.lang.NullPointerException</exception-type> <location>/pages/common/error500.html</location> </error-page> <error-page> <exception-type>javax.el.ELException</exception-type> <location>/pages/common/error500.html</location> </error-page> <error-page> <exception-type>javax.el.PropertyNotFoundException</exception-type> <location>/pages/common/error500.html</location> </error-page>
Suresh Khant
Ranch Hand
Posts: 118
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi All,
any reply
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Handling jsf exception
Deployment Exception
JSF : redirect errors to error page
404 and 500
I don't want expose my application's behind to everyone!
More...