Struts 2 Cookbook

on Tuesday, February 12, 2008

This is the place I record down all my experiences in using Struts 2


  1. To bypass the validation when submitting the actions:

    1. Put onclick="form.onsubmit=null" on the s:submit tag

    2. In the struts-core.jar, change the struts-default.xml. Inside this file, it defines "input","browse","cancel","back" as excluded methods during validation. You can add in more as a customization for struts 2 framework.



0 comments: