• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Struts 1.2.9 Validation.........

Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

Please clear my thought about strtus validation Framwork.

I have a index form , in that i have buttons to transfer user to particular form like Form1 , form2 ....

as examples will take form1.
Form1 contain two tabs
tab1-->viewTab (default tab-- which loads the DB data in tables format )
tab2--> AddTab( here user can add new record )

Now when user is on index form i.e on the application start up form...he will click Form1 so user directed to Form1 with Tab1 loaded Data...(when user click Form1..the action called up and in action it will get the data from DB in ArrayList and it will be added as requestParameter(arrayList)....so in Form1 will get the Data and we can load data in viewTab .....I have same FORMBEAN for view as well as the add feature

this above scenario works fine.....

Now i want to validate the data for Tab2 which is on Form1...i configured validationFramwork for above scenation succesfully ..

i have extended ValidatorForm for FORMBEAN and deleted Validate Method from FORMBEAN to configure validationFramwork...and did all configuration..i tested with sample application ..its work fine

now the problem is:

when user is on index form and click Form1 then i am getting error that the arrayList is not found which arrayList loads the data in viewTab which is default tab...

as per my view this error because , the validationFramwork first validate the data before calling any Action.....so i am not getting the arrayList which build in Action ...

is that so???
[ December 18, 2008: Message edited by: casinova guy ]
    Bookmark Topic Watch Topic
  • New Topic