Convention Plugin and Action Chaining

2009-03-10 Thread Edward Song
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

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Musachy Barroso
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

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Musachy Barroso
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

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Edward Song
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()

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Musachy Barroso
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

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Edward Song
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

RE: Convention Plugin and Action Chaining

2009-03-10 Thread Russo, Joe
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;

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Musachy Barroso
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

RE: Convention Plugin and Action Chaining

2009-03-10 Thread Russo, Joe
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