ssh integrated part of the case registered knowledge

1. Do not forget Dao layer inherit HibernateDaoSupport. The support classes in which it had sessionFactory the way to go.
2. The service is open transaction layer the @Transactional
3 background check
* Create an XML class in action where the package (check for a certain method).
* * Action class name - Corresponding path name -validation.xml (similar UserAction- the validation.xml-user_regist)
* the UserAction-user_regist-the validation.xml
e.g.

<? Xml version = "1.0" encoding = "UTF-8"?> User name can not be empty! Background echo in error page

Echo can also be separate <s: fielderror fieldName = "username" />

Guess you like

Origin blog.csdn.net/qq_41922566/article/details/94394729