struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank W. Zammetti" <fzli...@omnytex.com>
Subject Re: - Design Issue with Struts Validation
Date Tue, 16 May 2006 17:15:49 GMT
Hi,

Create two different mappings, one for the initial view (which has
validate set to false), one for the submission (with validate set to
true).

Frank

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: fzammetti@hotmail.com
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

On Tue, May 16, 2006 1:07 pm, J Gotsch wrote:
> When I go to a page for the 1st time, the validation takes affect.
> Obviously I don't want that, I only want to validate upon submitting.  How
> do I get around this?
>
>   My form extends ValidatorActionForm
>
>   My Action Mapping in Struts-Config:
>
>   <action path="/request/callingcard/callingCardDeactivate"
>    type="com.its.action.request.callingcard.SubmitCallingCardDeactivateAction"
>    name="callingCardDeactivateForm"
>    scope="request"
>    validate="true"
>    input="callingCardDeactivate">
>    <forward name="requestEntryPage" path="callingCardDeactivate" />
>    <forward name="draftCallingCard"
> path="requestDeactivateCallingCardDraft" />
>   </action>
>
>
> ---------------------------------
> How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call
> rates.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message