Re: [Poll] action mappings

2003-09-30 Thread Ted Husted
I use ActionMappings to represent a use-case or client story, rather than an atomic operation. The form-bean and validator collect the data the story needs, and an Action passes those to the business layer, and return the outcome. The business layer class is specified as a parameter so that I

Re: [Poll] action mappings

2003-09-25 Thread Timo Neumann
Mainguy, Mike wrote: I started with #1 but then switched to #2. As this is my first big struts project I might be wrong but I had the impression that #2 would be preferrable because with #1 I would have to repeat the action mapping as a string in my action classes. I saw that most of the

RE: [Poll] action mappings

2003-09-25 Thread shirishchandra.sakhare
somewhere else in the application, I can just use ReadUserAction.java again with a different mapping if required. Regards, Shirish -Original Message- From: Timo Neumann [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 9:37 AM To: Struts Users Mailing List Subject: Re: [Poll

RE: [Poll] action mappings

2003-09-25 Thread Susan Bradeen
- From: Timo Neumann [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 9:37 AM To: Struts Users Mailing List Subject: Re: [Poll] action mappings Mainguy, Mike wrote: I started with #1 but then switched to #2. As this is my first big struts project I might be wrong but I had

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
So far the results are as follows: #1 5 #2 1 #3 2 #4 0 I added myself to both 1 and 3 as I've done a project both ways... Now I wonder, how does everyone determine which operation you are doing? As a parameter in the action mapping? A big case-style (if else) statement? -Original

Re: [Poll] action mappings

2003-09-25 Thread Sgarlata Matt
for the same Action? Matt - Original Message - From: Mainguy, Mike [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 9:47 AM Subject: RE: [Poll] action mappings So far the results are as follows: #1 5 #2 1 #3 2 #4 0 I added myself

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
Users Mailing List Subject: Re: [Poll] action mappings I think for #3 it would be silly not to use a DispatchAction or LookupDispatchAction, right? It seems like you would also want DispatchAction or LookupDispatchAction for #1, but I really don't understand why people are using #1 at all

Re: [Poll] action mappings

2003-09-25 Thread Sgarlata Matt
on the servlet API. Thoughts? Matt - Original Message - From: Mainguy, Mike [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 9:59 AM Subject: RE: [Poll] action mappings You don't have to create a different ActionClass for every

RE: [Poll] action mappings

2003-09-25 Thread shirishchandra.sakhare
Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 3:47 PM To: 'Struts Users Mailing List' Subject: RE: [Poll] action mappings So far the results are as follows: #1 5 #2 1 #3 2 #4 0 I added myself to both 1 and 3 as I've done a project both ways... Now

RE: [Poll] action mappings

2003-09-25 Thread Richard J. Duncan
Users Mailing List Subject: RE: [Poll] action mappings +1. We found that #2 worked best for our current application. On 09/25/2003 03:42:52 AM shirishchandra.sakhare wrote: My choce would be #2. We are doing a quite a big struts project here and i have seen both the approaches being used

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:14 AM To: Struts Users Mailing List Subject: Re: [Poll] action mappings OK, I think I understand #1 now. However, I still disagree with it ;) If you are using the same form bean and display components, you can

Re: [Poll] action mappings

2003-09-25 Thread Sgarlata Matt
How is #3 different from #5? Matt - Original Message - From: Richard J. Duncan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:29 AM Subject: RE: [Poll] action mappings What about: #5: A DispatchAction (struts 1.1) with a single action map entry

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
.. -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 3:47 PM To: 'Struts Users Mailing List' Subject: RE: [Poll] action mappings So far the results are as follows: #1 5 #2 1 #3 2 #4 0 I added myself to both 1 and 3 as I've done a project

RE: [Poll] action mappings

2003-09-25 Thread Michael Ruppin
: Thursday, September 25, 2003 10:25 AM To: [EMAIL PROTECTED] Subject: RE: [Poll] action mappings Thats what prompted me to vote for 2... Why to have unnecessary have this case statement in every action? HAve the actions as simple handlers.Performing just simple atomic operations

RE: [Poll] action mappings

2003-09-25 Thread shirishchandra.sakhare
, Mike [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 4:35 PM To: 'Struts Users Mailing List' Subject: RE: [Poll] action mappings #2 and #3 are, to me, flip sides of the same coin. Our team is really divided over which is better. Currently, we're using #3 and I personally think

Re: [Poll] action mappings

2003-09-25 Thread Adam Hardy
Normally a parameter in the action mapping, but other things affect it too, such as the cancel button. And then a big case-style if else in my action superclass. On 09/25/2003 03:47 PM Mainguy, Mike wrote: So far the results are as follows: #1 5 #2 1 #3 2 #4 0 I added myself to both 1 and 3 as

Re: [Poll] action mappings

2003-09-25 Thread Adam Hardy
layer from any web stuff and use request parameters to determine which business operation I was performing. -Original Message- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 9:54 AM To: Struts Users Mailing List Subject: Re: [Poll] action mappings I think

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:44 AM To: Struts Users Mailing List Subject: Re: [Poll] action mappings I just find it naturally easier to grasp what is going on with one Action and one form bean for each object in my model (and normally one factory

Re: [Poll] action mappings

2003-09-25 Thread Sgarlata Matt
, and will be adding this to my API in the next few minutes. Matt - Original Message - From: Mainguy, Mike [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:28 AM Subject: RE: [Poll] action mappings That is exactly the method signature I use

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
Whoops!, I goofed up my response, let me clarify. From: Sgarlata Matt [mailto:[EMAIL PROTECTED] I just find it naturally easier to grasp what is going on with one Action and one form bean for each object in my model (and normally one factory or 'business delegate') plus a host of mappings.

RE: [Poll] action mappings

2003-09-25 Thread Richard J. Duncan
:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:31 AM To: Struts Users Mailing List Subject: Re: [Poll] action mappings How is #3 different from #5? Matt - Original Message - From: Richard J. Duncan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:29

Re: [Poll] action mappings

2003-09-25 Thread Adam Hardy
than I am. -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:44 AM To: Struts Users Mailing List Subject: Re: [Poll] action mappings I just find it naturally easier to grasp what is going on with one Action and one form bean for each

RE: [Poll] action mappings

2003-09-25 Thread Shane Mingins
-Original Message- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Friday, 26 September 2003 2:14 a.m. To: Struts Users Mailing List Subject: Re: [Poll] action mappings OK, I think I understand #1 now. However, I still disagree with it ;) If you are using the same form bean

Re: [Poll] action mappings

2003-09-25 Thread Sgarlata Matt
#3 :) Matt - Original Message - From: Shane Mingins [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 4:42 PM Subject: RE: [Poll] action mappings -Original Message- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent

RE: [Poll] action mappings

2003-09-25 Thread Shane Mingins
-Original Message- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Friday, 26 September 2003 8:55 a.m. To: Struts Users Mailing List Subject: Re: [Poll] action mappings When I am using design #3 my action mappings always specify that validate=false. Those methods that do

Re: [Poll] action mappings

2003-09-25 Thread Adam Hardy
PM Shane Mingins wrote: -Original Message- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Friday, 26 September 2003 8:55 a.m. To: Struts Users Mailing List Subject: Re: [Poll] action mappings When I am using design #3 my action mappings always specify that validate=false. Those methods

Re: [Poll] action mappings

2003-09-24 Thread James Mitchell
23, 2003 12:59 PM Subject: Re: [Poll] action mappings hi james, could you please explain, for a struts newbie, what do you mean by quote I'm using DispatchAction with 2 abstract base actions between my actions and the dispatch action. The first one has helper methods for functionality

Re: [Poll] action mappings

2003-09-24 Thread atta-ur rehman
appreicate if you could explain it for me. ATTA - Original Message - From: James Mitchell [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:06 AM Subject: Re: [Poll] action mappings Did you look at the attached text file

Re: [Poll] action mappings

2003-09-23 Thread James Mitchell
#1 with a twist. I'm using DispatchAction with 2 abstract base actions between my actions and the dispatch action. The first one has helper methods for functionality not requiring authentication, and the second one (which extends the first) does require authentication. By overriding the execute

Re: [Poll] action mappings

2003-09-23 Thread Adam Hardy
#1 On 09/23/2003 05:05 PM Mainguy, Mike wrote: I have yet another opinion poll for struts-user... What are folks currently doing for action mappings in relation to CRUD operations? Are you: #1 creating a unique Action mapping for each atomic operation (potentially mapped to the same

Re: [Poll] action mappings

2003-09-23 Thread Sgarlata Matt
#3 - almost all of my actions descend from DispatchAction - Original Message - From: Mainguy, Mike [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 11:05 AM Subject: [Poll] action mappings I have yet another opinion poll for struts-user... What are folks

Re: [Poll] action mappings

2003-09-23 Thread atta-ur rehman
the first) does require authentication. /quote Thanks in advance! ATTA - Original Message - From: James Mitchell [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:17 AM Subject: Re: [Poll] action mappings #1 with a twist. I'm using