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: BeanMapping WAS: [Poll] action mappings

2003-09-27 Thread Adam Hardy
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

Re: BeanMapping WAS: [Poll] action mappings

2003-09-27 Thread Sgarlata Matt
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

Re: BeanMapping WAS: [Poll] action mappings

2003-09-27 Thread Adam Hardy
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

Re: BeanMapping WAS: [Poll] action mappings

2003-09-26 Thread Sgarlata Matt
- 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

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
] 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

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
- 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

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
: [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

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
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

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

BeanMapping WAS: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
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

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: BeanMapping WAS: [Poll] action mappings

2003-09-25 Thread Craig R. McClanahan
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

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

[Poll] action mappings

2003-09-23 Thread Mainguy, Mike
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 -

Re: [Poll] action mappings

2003-09-23 Thread James Mitchell
- 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

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