This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 1.2.9 Validation......... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1.2.9 Validation........." Watch "Struts 1.2.9 Validation........." New topic
Author

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

casinova guy
Greenhorn

Joined: Dec 04, 2008
Posts: 4
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 ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts 1.2.9 Validation.........
 
Similar Threads
scriplet-UI clash issue
jsp response problem
RichFaces TabPanle problem
How to switch between tabs in swings?
Need some suggestion preventing user mouse click