*
The moose likes Struts and the fly likes Program action of a page dynamically  depending on the link from where it is called Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Program action of a page dynamically  depending on the link from where it is called" Watch "Program action of a page dynamically  depending on the link from where it is called" New topic
Author

Program action of a page dynamically depending on the link from where it is called

mihir maniar
Ranch Hand

Joined: Sep 09, 2003
Posts: 88
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Program action of a page dynamically depending on the link from where it is called
 
Similar Threads
read dynamic text fields
How to add error message before sendRedirect
How to access the request object in struts2 action
Struts 1.1 question (Might not be an easy one)
struts 1 form