- Struts 2 is not compatible with struts 1
- Default extension for the actions is changed from .do to .action. If we want to change the default extension for actions then we can set it like following in struts.xml file
constant name="struts.action.extension" value="do"
- By default there should be one struts.xml file present in the classpath. It can include additional struts definition files in it.
- errors: we can have action errors and field errors.. field errors are associated with a particular HTML text field.. while action errors would be any general errors..
- validate="true" in form tag would allow (or invoke?) client side javascript validation so as to save few server trips.
No comments:
Post a Comment