Apparently it isn't working as I expected. I would really like to understand
how this works.
Here is my form tag:
Here is my struts.xml entry:
ScheduleDetailAction_update
Here is partial contents of my
ScheduleDetailAction-ScheduleDetailAction_updateSchedule-validation.xml
e (and not persist)
Chris
-Original Message-
From: Musachy Barroso
To: Struts Users Mailing List
Sent: Tue, Nov 17, 2009 6:17 pm
Subject: Re: s2: Validation xml file not being used when validating a method
It can be done like that as well, but, your first attempt should
Thanks for the replies, I have it working now.
I think the problem was that the name I used in the form action
(ScheduleDetailAction_update) did NOT have a mapping in my struts.xml file.
I had assumed that because the method was eventually being called that I had
configured everything correctly
It can be done like that as well, but, your first attempt should be
better. The "alias" part is the action name, lets say you have an
action like this:
/survey/survey-results.jsp
/survey/survey.jsp
you would need to name the validation file
"SurveyA
So it's done strictly by exclusion? I *thought* I had read that the
validation could be focused on a specific method through the naming
convention of the validation file(s). Is that idea totally wrong?
--
View this message in context:
http://old.nabble.com/s2%3A-Validation-xml-file-not-being-us
ben_979 escribió:
I'm trying to figure out the validation framework, and I don't have a clear
understanding from the docs I've read where I'm going wrong, so if someone
could point me in the right direction I'd appreciate it.
I'm trying to validate ONLY when a particular method of an action clas
6 matches
Mail list logo