I would go with the declarative approach. It lends to more flexibility.
Harsh.

-----Original Message-----
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 16, 2006 1:27 PM
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: Re: - Design Issue with Struts Validation


On Tue, May 16, 2006 2:02 pm, Dave Newton wrote:
> Frank W. Zammetti wrote:
>> Create two different mappings, one for the initial view (which has
>> validate set to false), one for the submission (with validate set to
>> true).
>>
>
> Create a base action that has separate handlers for GET (initial page
> hit) and POST (form submission).

That works too, as does the other suggestion posted... just a difference
between a declarative approach and a programmatic approach.

> <off-topic>
> Remember the days when newsgroups had a daily or weekly FAQ posting?
>
> Whaddya think?
> </off-topic>

Not a bad idea, but someone would have to put it together each week.
You
voluntering? :)  It would work if you simply put it together and posted
it
here every Friday or whenever, no need for any infrastructure to do
anything that way, and I doubt too many people would complain (one more
message a week isn't going to kill anyone, whether they read it or not).

> Dave

Frank

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to