Link to home
Start Free TrialLog in
Avatar of Econify
Econify

asked on

How to perform client side validation on parameters inside valueobject in STRUTS framework?

HI,
I am using validator plugin in my STRUTS application. I want it to use for client side validation of form parameters.
But problem is that my form bean dont have parameters of type String, int etc. But parameters are of type value object.
that is,
Instead of following type form:-
---------------------------------------------------
public class UserForm extends ValidatorForm {
String username;
String password;
getters & setters for username & password
}
--------------------------------------------------

My for is like following:-
-----------------------------------------------
public class UserForm extends ValidatorForm {
UserObject userobj; //this is my value object
getters & setters for userobj
}
----------------------------------------------

My problem is that how can i use fields in valueobject inside my formbean for Client side validation?

PLease help me.
Thanx in advance.
Pras
ASKER CERTIFIED SOLUTION
Avatar of jaggernat
jaggernat

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial