首页    期刊浏览 2024年11月25日 星期一
登录注册

文章基本信息

  • 标题:Transform & Execute Apache Struts 1.x based validations to Bean Validation through JSF
  • 本地全文:下载
  • 作者:Vijay Kumar Pandey
  • 期刊名称: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.
  • 关键词:Struts; JSF; ‘’validate’ method; Bean Validation (BV); OmniFaces; ThreadLocal; ActionForm; ControllerBean; TagHandler.
国家哲学社会科学文献中心版权所有