Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
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:
Struts
Displaying a Default Error page
Ally Cavs
Ranch Hand
Posts: 95
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
in my Web.xml i normally have
<error-page> <!-- Page not found --> <error-code>404</error-code> <location>/WEB-INF/jsp/404.jsp</location> </error-page> <error-page> <!-- Server error --> <error-code>500</error-code> <location>/WEB-INF/jsp/errorPage.jsp</location> </error-page> <!-- Handle any exceptions outside the scope of the application --> <error-page> <exception-type>java.lang.throwable</exception-type> <location>/WEB-INF/jsp/errorPage.jsp</location> </error-page>
But since im using
Struts
2 only the error 404 works
What do I need to do if a Exception is thrown and I wont a generic error page to show up
Do I need to change the struts.xml?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
pageContext.exception is not executing
Problem configuring Error Page
problem while declaring error page
Error-Code Tag of web.xml 2.4 not working
Exception Management in a web applications
More...