i have a page with 10 text boxes to be filled. i want to use it for multiple purposes in such a way that at time i want to make former 5 fields mandatory if i come from login page , and latter 5 non-mandatory. While other times i want to make the latter 5 fields mandatory and the former 5 fields non mandatory. so what i do is i map the action to the validations in the validations.xml instead of the form. but my problem is how do i set the action of this form as per the link from which form is called. i hope my question is clear.Any kind of help is appreciated. Thanks in Advance.