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
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
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
-
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
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
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
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
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
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
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
-
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
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
..
-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
: 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
, 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
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
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
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
, 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
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.
:[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
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
-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
#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
-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
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
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
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
#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
#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
#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
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
32 matches
Mail list logo