Yes, you can do this, and it'll work. You can set the "input"
attribute to an action, and that action will be called when there are
validation errors. Or, you can set "validate=false" as Frank
suggested and call the form bean's "validate()" method yourself. If
there are errors, you can do a "ret
On Mon, November 1, 2004 3:26 pm, Gary S. Cuozzo said:
>> The forward attribute of your action mappings can point to another
>> action mapping. Would that do the trick for you?
> I suppose it would. How would struts know which mapping I wanted to go
> to in the case of validation errors? Would I
> The forward attribute of your action mappings can point to another action mapping.
> Would that do the trick for you?
I suppose it would. How would struts know which mapping I wanted to go
to in the case of validation errors? Would I just add a forward with
the same name as the input form or
On Mon, November 1, 2004 2:14 pm, Gary S. Cuozzo said:
> Is there a way to make struts forward back to an action (instead of just
> the jsp page) when validation issues are detected?
The forward attribute of your action mappings can point to another action mapping.
Would that do the trick for yo
Yes, but I actually do want to use the validation.
Is there a way to make struts forward back to an action (instead of just
the jsp page) when validation issues are detected? That way, at least I
can make the action reload the page scope data that should be there.
And, as long as the form reset
Try creating a new action with validate="false" on those times you
don't want to validate the data.
Lee
On Mon, 01 Nov 2004 13:06:31 -0500, Gary S. Cuozzo
<[EMAIL PROTECTED]> wrote:
> Hello,
> I seem to always be struggling with a particular scenario in my Struts
> apps and thought I would ask t
Hello,
I seem to always be struggling with a particular scenario in my Struts
apps and thought I would ask to see what others are doing.
In my applications, I like to present my forms with the most up-to-date
data available, so I typically have a 'prep' action that grabs data from
persistent stora
7 matches
Mail list logo