Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2007

Tip: Looking for answers? Try searching our database.

Redirecting to a common error page in struts

Thread view: 
vysh - 07 May 2007 07:11 GMT
How to redirect to a common error page on occurance an Exception,in
struts?
sh - 07 May 2007 09:25 GMT
> How to redirect to a common error page on occurance an Exception,in
> struts?

declare  global error page in the Struts-config.xml

    <global-exceptions>
        <exception key="error.general" type="java.lang.Exception"
            path="/../error.jsp" />
    </global-exceptions>

<global-forwards>
        <forward name="error" path="/../error.jsp" />
</global-forwards>

and provide the mapping.findForward ("error");  in the Action class


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.