Hi all,
This question concerns the Convention Plugin, specifically in regards to
Action Chaining.
I am using Struts 2.1.6
I have the following package structure.
com.company.web.actions.administrators.GetAction
(/administrators/get)
com.company.web.actions.administrators.SaveAction
Yes, you can chain actions if they are in the same package:
http://cwiki.apache.org/WW/convention-plugin.html#ConventionPlugin-Chaining
musachy
On Tue, Mar 10, 2009 at 11:52 AM, Edward Song
edward.s...@nuhorizons.com wrote:
Hi all,
This question concerns the Convention Plugin, specifically
The problem in your case, is that Convention tries to find
get-get.jsp and then tries get.jsp, which it will find, so it will
never chain to the action, but rather dispatch to the jsp. Chaining
only works when no result is found.
musahcy
On Tue, Mar 10, 2009 at 12:12 PM, Musachy Barroso
Thanks Musachy for your prompt response.
Makes total sense.
However, I now tried the following based on your reply
GetAction.execute() returns ActionSupport.SUCCESS.
forwards to
get-success.jsp (renamed get.jsp, so that it would not be found in the
instance below)
SaveAction.execute()
If the result is get and the source action is target is save, then
the target action has to be save-get (yours is get).
musachy
On Tue, Mar 10, 2009 at 1:42 PM, Edward Song edward.s...@nuhorizons.com wrote:
Thanks Musachy for your prompt response.
Makes total sense.
However, I now tried the
Thanks Musachy, I fully understand now. I appreciate your help.
On Tue, Mar 10, 2009 at 1:54 PM, Musachy Barroso musa...@gmail.com wrote:
If the result is get and the source action is target is save, then
the target action has to be save-get (yours is get).
musachy
On Tue, Mar 10, 2009 at
I defined the below code and would like to use the iterate functionality
witin the jsp. This code does not cause any error, but does not display
any data. Any ideas why?
package com.cadmus.rpm.domain.custom;
import java.io.Serializable;
import java.util.Date;
import java.util.ArrayList;
By convention you should not chain your questions into an existing
thread on another topic :)
musachy
On Tue, Mar 10, 2009 at 2:25 PM, Russo, Joe rus...@cadmus.com wrote:
I defined the below code and would like to use the iterate functionality
witin the jsp. This code does not cause any
Sorry about that.
-Original Message-
From: Musachy Barroso [mailto:musa...@gmail.com]
Sent: Tuesday, March 10, 2009 2:28 PM
To: Struts Users Mailing List
Subject: Re: Convention Plugin and Action Chaining
By convention you should not chain your questions into an existing
thread
9 matches
Mail list logo