首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

struts method validate的运用

2012-08-24 
struts method validate的使用validate by manual programming br1: validate every action method br

struts method validate的使用
    validate by manual programming <br>1: validate every action method <br>?? (1):extend actionsupport and rewrite the validate method <br>?? (2):<result name="input"/> <br>?? (3):<s:filederror /> <br>2: validate specific action method <br>?? (1):add validatexxx method to validate xxx method <br>?? (2):<result name="input"/> <br>?? (3):<s:filederror /> <br>validate by xml configuration <br>1: validate every action method <br>?? (1):add actionclassname-validation.xml <br>?? (2):<result name="input"/> <br>?? (3):<s:filederror /> <br>2: validate specific action method <br>?? (1):add actionclassname-actionname-validation.xml <br>?? (2):<result name="input"/> <br>?? (3):<s:filederror /> <br>validation.xml searching order: <br>1:single action <br>??? owner:actionclassname-validation.xml <br>??? owner:actionclassname-actionname-validation.xml <br>2:have parent <br>??? parent:actionclassname-validation.xml <br>??? parent:actionclassname-actionname-validation.xml <br>??? owner:actionclassname-validation.xml <br>??? owner:actionclassname-actionname-validation.xml
 

热点排行