Carl, if I could bother you for a few more details?
I like your solution, it seems elegant (to me at least!). I'm trying to
implement it, but I'm not getting the results that you are.
I've set up the type converter, and I've verified that it is being invoked.
When my conversion fails (for exam
Continuing with my validation problems, I think I've discovered a bug in how
struts2 handles the method invocation after validation.
Here is the submit tag:
and in the struts.xml
ScheduleDetailAction_callMe
If the form associated with the form tag gets validated succesfully,
everythi
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
Are you talking about two submits on the same form? That is definitely
possible.
This might help ...
http://www.alanflavell.org.uk/www/trysub.html
--
View this message in context:
http://old.nabble.com/how-to-use-one-user-input-in-two-forms--tp26415809p26416182.html
Sent from the Struts - User
By 'old struts', I'm assuming 1.x ...
In our application, our application sets values into the request with
request.setAttribute("varName", var) and then references the variables in
the jsp with (for example)
Then you can use the tags etc,
Not sure if I answered your question...
--
View th
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
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
Put each button in it's own form, and assign a hidden variable in each form
with a different value for each button/form. In your action class, check the
value of the parameter, set a generic message string based on the parameter
value, then redisplay the page with the forms on it.
--
View this m
I have a related question, but it's a bit of a side-track as I try to solve
my original problem.
What is the naming convention and the difference between the two types of
-validation.xml file naming?
I think I understand that ActionClass-validation.xml is called for all
(non-excluded) methods
I have an object with a java.util.Date field. I present the object inside a
form with the following tag:
where detail.date is a date formatting pattern.
The problem arises because after getText(), the field is populated with a
String. When the String is submitted, I get an error because I don
10 matches
Mail list logo