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
WAS: [Poll] action mappings
I think your way is perfectly acceptable. I like to try and use the
supplied interfaces (i.e. DynaBean) if they suit my needs and, to date,
DynaBean has served me well. You can use BeanUtils to map DynaBeans to
POJO's and visa versa (as a matter of fact you can to it to/from
Subject: Re: BeanMapping WAS: [Poll] action mappings
Hey Matt,
do you use different types in your dynaforms or do you stick to just
strings? I was wondering about using dynaforms as transfer objects like
you mention, but I only use strings, since incorrect form entries for
non-string types
Message -
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, September 27, 2003 10:40 AM
Subject: Re: BeanMapping WAS: [Poll] action mappings
Hey Matt,
do you use different types in your dynaforms or do you stick to just
strings? I
- Original Message -
From: Mainguy, Mike [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 3:35 PM
Subject: BeanMapping WAS: [Poll] action mappings
I think your way is perfectly acceptable. I like to try and use the
supplied
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
] 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 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
-
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
-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 11:06 AM
To: [EMAIL PROTECTED]
Subject: [Poll] action mappings
I have yet another opinion poll for struts-user...
What are folks currently doing for action mappings in relation to CRUD
operations?
Are you
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
: [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
and acting on whatever configuration they are provided to decide navigation
Something like
: 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
AM
To: [EMAIL PROTECTED]
Subject: [Poll] action mappings
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
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
at the bottom of
all my messages is exposing all of struts-user to the risk of prosecution
(and me of termination).
-Original Message-
From: Sgarlata Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 10:53 AM
To: Struts Users Mailing List
Subject: Re: [Poll] action mappings
-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
Mainguy, Mike wrote:
I think your way is perfectly acceptable. I like to try and use the
supplied interfaces (i.e. DynaBean) if they suit my needs and, to date,
DynaBean has served me well. You can use BeanUtils to map DynaBeans to
POJO's and visa versa (as a matter of fact you can to it
#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
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 action class)
/createUser.do -
- 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 currently doing for action mappings in relation to CRUD
operations
#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
39 matches
Mail list logo