Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts 1.2.9 Validation.........  RSS feed

casinova guy
Posts: 4
  • Mark post as helpful
  • send pies
  • 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) 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 i am not getting the arrayList which build in Action ...

is that so???
[ December 18, 2008: Message edited by: casinova guy ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!