struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graham" <>
Subject Re: Validator validates too early (was RE: Validator won't validate single required field)
Date Fri, 24 Jan 2003 22:32:55 GMT
That was a poor suggestion and I highly doubt any Struts committer would 
give you the same advice ;-).

The naming convention in the example app wasn't intuitive for me so I 
usually do:

GetAccountFormAction maps to
SaveAccountFormAction maps to

If I'm not dealing with a form (like your situation) I'll use something 

GetAccountIndexPageAction =>
ViewAccountsAction =>

There's no "right" way, just the way that makes sense for you.


>From: Wendy Smoak <>
>Reply-To: "Struts Users Mailing List" <>
>To: 'Struts Users Mailing List' <>
>Subject: Validator validates too early (was RE: Validator won't validate 
>single required field)
>Date: Fri, 24 Jan 2003 15:06:09 -0700
> > You wouldn't want to hit the JSP first anyways ;-).
>It was suggested by another person here and I just wanted to rule it out in
>case it was your next suggestion. :)
> > I believe both of your
> > thoughts will work but I would try the separate action mapping idea 
>I did, and it works, but... BLECH!  I have to duplicate every single action
>mapping?!  And what am I supposed to call them? is so clean,
>and now I have to have  Or perhaps I keep the first
>one with the clean name and call the others someAction2?
>I'm examining the struts-example with JSP's under WEB-INF, and I think the
>difference is my use of LookupDispatchAction vs. separate Actions for each
>thing: edit/save/create.
>This particular form isn't a CRUD form, it's a "Select the person you want
>to view read-only info on", so I can't quite make the createSomething,
>editSomething, updateSomething pattern fit.
>And it kind of defeats the purpose of LookupDispatchAction to have to map 
>several times.
>I'm still pondering what to do about this.  I'm currently going with
> and (for No Validation).  Ideas appreciated!
>Wendy Smoak
>Applications Systems Analyst, Sr.
>Arizona State University PA Information Resources Management

The new MSN 8: advanced junk mail protection and 2 months FREE*

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message