Mallik wrote:
Hi friends
i have stuckup in validation framework because my form will get fields
dynamically on user request
and i cannot predect how my fields it will have when posting the form....
i am creating Dynamic form fields using javascript like
txt = document.createElement('input');
txt.type='text';
txt.name = 'element1';
and adding to form td element
so now
how can i set for form bean property in struts-config.xml and in
validation.xml
please let me know the solution.......
ur's
Mallik
It sounds like you're creating a form that allows entry of a list of
values. So in your form bean, you need a property (or properties) that
represents that list -- i.e. an array or list of values.
See the documentation on working with indexed properties [1], perhaps
that will give you what you need.
L.
[1] http://struts.apache.org/1.2.9/userGuide/building_view.html#indexed
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]