期刊名称:International Journal of Computer Trends and Technology
电子版ISSN:2231-2803
出版年度:2019
卷号:67
期号:4
页码:24-28
DOI:10.14445/22312803/IJCTT-V67I4P105
出版社:Seventh Sense Research Group
摘要:The paperis intended to provide an understanding of how to transform and execute Apache Struts 1.x based validation to Bean Validation and then execute the transformed validate method through Java Server Faces (JSF) runtime. JSF by default executes the validation PROCESS_VALIDATIONS after the APPLY_REQUEST_VALUES phase and if there are no validation issues then the control passes to UPDATE_MODEL_VALUES phase else it goes to the RENDER_RESPONSE phase. While in the Struts 1.x application, first the Struts action form is populated with the request parameter values and then only it’s ‘validate’ method is executed. So direct mapping of struts validation execution process will fail in JSF since model (action form) will not be populated with the request parameterswhen the validation is executed.