The moose likes Struts and the fly likes navigate away from error pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "navigate away from error pages" Watch "navigate away from error pages" New topic

navigate away from error pages

Anand Sivathanu
Ranch Hand

Joined: Jun 25, 2010
Posts: 76
Hi Friends,

I am new to struts 2.

I tried in running a sample struts 2 application implementing navigate away from error pages.But it is not done.

<interceptor name="FirstInterceptor" class="org.anand.javaForLearning.FirstInterceptor">

<interceptor name="SecondInterceptor" class="org.anand.javaForLearning.SecondInterceptor">

<interceptor name="ThirdInterceptor" class="org.anand.javaForLearning.LoginAction">

<interceptor-stack name="newStack">
<interceptor-ref name="FirstInterceptor">
<interceptor-ref name="SecondInterceptor"/>
<interceptor-ref name="ThirdInterceptor">
<param name="validation.excludeMethods">method1</param>
<param name="workflow.excludeMethods">method1</param>
<interceptor-ref name="params"/>
<interceptor-ref name="timer"/>
<interceptor-ref name="defaultStack"/>


<default-interceptor-ref name="newStack"/>

<action name="Login" class="org.anand.javaForLearning.LoginAction">
<interceptor-ref name="newStack">
<result name="success">Welcome.jsp</result>
<result name="input">login.jsp</result>
<result name="error">error.jsp</result>

here i have introduced method1 in order to implement the functionality "navigate away from error pages".
But when i run the web application,the control doesnot bother about the method1.

It will be better if any one provide a sample web application that implement "navigate away from error pages" in struts 2

I have googled for a long time but no proper information found( according to my point of view)

jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 297


Can you provide me link for the sample application. And does your application throw error while testing this functionality?

I agree. Here's the link:
subject: navigate away from error pages
It's not a secret anymore!