Re: Chain a global result to an action?

2016-01-04 Thread ragu
Im facing the same issue, has anybody arrived at a solution or found a 
way to resolve this issue ???





-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Chain a global result to an action?

2009-09-10 Thread Jim Collings
Anybody know what the syntax for this is?  I don't seem to be getting it right.


Jim C.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Chain a global result to an action?

2009-09-10 Thread Bill Bohnenberger
This works for me:

struts
package ...

global-results
result name=error type=redirectDeadEnd/result
/global-results

...
action name=DeadEnd class=com.rp.db.actions.DeadEnd
resultdeadEnd.jsp/result
/action

...
/package
/struts

The entire action class is:

@SuppressWarnings(serial)
public class DeadEnd extends ActionSupport
{

}

and when any action returns error the deadEnd.jsp page is displayed.

- Bill

On Thu, Sep 10, 2009 at 11:49 AM, Jim Collings jlistn...@gmail.com wrote:

 Anybody know what the syntax for this is?  I don't seem to be getting it
 right.


 Jim C.

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Chain a global result to an action?

2009-09-10 Thread Jim Collings
Will I have to define the action in the struts.xml?  I'm currently
using annotations to handle mapping.

Jim C.

 This works for me:

 struts
    package ...

        global-results
            result name=error type=redirectDeadEnd/result
        /global-results

    ...
        action name=DeadEnd class=com.rp.db.actions.DeadEnd
            resultdeadEnd.jsp/result
        /action

    ...
    /package
 /struts

 The entire action class is:

 @SuppressWarnings(serial)
 public class DeadEnd extends ActionSupport
 {

 }

 and when any action returns error the deadEnd.jsp page is displayed.

 - Bill

 On Thu, Sep 10, 2009 at 11:49 AM, Jim Collings jlistn...@gmail.com wrote:

 Anybody know what the syntax for this is?  I don't seem to be getting it
 right.


 Jim C.

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Chain a global result to an action?

2009-09-10 Thread Jim Collings
I also forgot to mention that this is a convention-plugin project.

On Thu, Sep 10, 2009 at 3:10 PM, Jim Collings jlistn...@gmail.com wrote:
 Will I have to define the action in the struts.xml?  I'm currently
 using annotations to handle mapping.

 Jim C.

 This works for me:

 struts
    package ...

        global-results
            result name=error type=redirectDeadEnd/result
        /global-results

    ...
        action name=DeadEnd class=com.rp.db.actions.DeadEnd
            resultdeadEnd.jsp/result
        /action

    ...
    /package
 /struts

 The entire action class is:

 @SuppressWarnings(serial)
 public class DeadEnd extends ActionSupport
 {

 }

 and when any action returns error the deadEnd.jsp page is displayed.

 - Bill

 On Thu, Sep 10, 2009 at 11:49 AM, Jim Collings jlistn...@gmail.com wrote:

 Anybody know what the syntax for this is?  I don't seem to be getting it
 right.


 Jim C.

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org





-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Chain a global result to an action?

2009-09-10 Thread Bill Bohnenberger
I'll let someone else answer this... I've not jet used the convention plugin
(too bleeding edge for me! :)

On Thu, Sep 10, 2009 at 12:11 PM, Jim Collings jlistn...@gmail.com wrote:

 I also forgot to mention that this is a convention-plugin project.

 On Thu, Sep 10, 2009 at 3:10 PM, Jim Collings jlistn...@gmail.com wrote:
  Will I have to define the action in the struts.xml?  I'm currently
  using annotations to handle mapping.
 
  Jim C.
 
  This works for me:
 
  struts
 package ...
 
 global-results
 result name=error type=redirectDeadEnd/result
 /global-results
 
 ...
 action name=DeadEnd class=com.rp.db.actions.DeadEnd
 resultdeadEnd.jsp/result
 /action
 
 ...
 /package
  /struts
 
  The entire action class is:
 
  @SuppressWarnings(serial)
  public class DeadEnd extends ActionSupport
  {
 
  }
 
  and when any action returns error the deadEnd.jsp page is displayed.
 
  - Bill
 
  On Thu, Sep 10, 2009 at 11:49 AM, Jim Collings jlistn...@gmail.com
 wrote:
 
  Anybody know what the syntax for this is?  I don't seem to be getting
 it
  right.
 
 
  Jim C.
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Chain a global result to an action?

2009-09-10 Thread ManiKanta G
Hi,

I m facing the same problem, and I've posted to list.

Please follow for any updates:
http://www.nabble.com/Problem-with-result-returning-from-interceptor-td25075486.html

Regards,
ManiKanta G
twitter.com/manikantag


On Fri, Sep 11, 2009 at 1:10 AM, Bill Bohnenberger bill98...@gmail.comwrote:

 I'll let someone else answer this... I've not jet used the convention
 plugin
 (too bleeding edge for me! :)

 On Thu, Sep 10, 2009 at 12:11 PM, Jim Collings jlistn...@gmail.com
 wrote:

  I also forgot to mention that this is a convention-plugin project.
 
  On Thu, Sep 10, 2009 at 3:10 PM, Jim Collings jlistn...@gmail.com
 wrote:
   Will I have to define the action in the struts.xml?  I'm currently
   using annotations to handle mapping.
  
   Jim C.
  
   This works for me:
  
   struts
  package ...
  
  global-results
  result name=error type=redirectDeadEnd/result
  /global-results
  
  ...
  action name=DeadEnd class=com.rp.db.actions.DeadEnd
  resultdeadEnd.jsp/result
  /action
  
  ...
  /package
   /struts
  
   The entire action class is:
  
   @SuppressWarnings(serial)
   public class DeadEnd extends ActionSupport
   {
  
   }
  
   and when any action returns error the deadEnd.jsp page is displayed.
  
   - Bill
  
   On Thu, Sep 10, 2009 at 11:49 AM, Jim Collings jlistn...@gmail.com
  wrote:
  
   Anybody know what the syntax for this is?  I don't seem to be getting
  it
   right.
  
  
   Jim C.
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
  
  
  
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org