I have 2 Action classes : LoadingFormAction.java and FormValidationAction.java. In the first one, I create the functions which help in uploading data from an Excel file, and in the second I need to validate the loaded data according to the other fields values. LoadingFormAction.java control the view Form.jsp and FormValidationAction.java the view FormValidation.jsp. My question is : How to evaluate the attributes of the first action and use them in the second Action?? Is it obligatory to pass it as a session parameter? Thank you a lot.
I have 2 Action classes : LoadingFormAction.java and FormValidationAction.java . In the first one,
Share
Where
yourPropertyis the parameter of yourLoadingFormActionclass which you want to passto
FormValidationActionclass. You need to declare getter/setter for this variable in both the classes. Also,LoadingFormActionNameandFormValidationActionNameare the corresponding action names.