課程
/后端開發
/Java
/Struts2攔截器淺析
return ERROR;
<result name="error"> ? ?為什么不能<result name="ERROR"> ? ? ?難道是這是默認字符就有特殊性?
2017-06-18
源自:Struts2攔截器淺析 5-3
正在回答
在ActionSupport實現的Action接口里有這樣的定義:
?/**
? ? ?* The action execution was a failure.
? ? ?* Show an error view, possibly asking the
? ? ?* user to retry entering data.
? ? ?*/
? ? public static final String ERROR = "error";
ERROR是定義時使用的名稱,全部大寫是因為是常量 可能是這樣定義的 public static final String ERROR="error";
ERROR 其實就是字符串“error”,而不是“ERROR”
舉報
本視頻教程將代領大家了解Struts2攔截器的工作原理及配置
1 回答關于Session的問題
2 回答問個問題,感覺并不需要這個登錄驗證啊,有大神回答一下嗎
2 回答關于invocation.invoke()返回值的問題
1 回答關于invoke方法
2 回答關于攔截器
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-10-14
在ActionSupport實現的Action接口里有這樣的定義:
?/**
? ? ?* The action execution was a failure.
? ? ?* Show an error view, possibly asking the
? ? ?* user to retry entering data.
? ? ?*/
? ? public static final String ERROR = "error";
2017-06-26
ERROR是定義時使用的名稱,全部大寫是因為是常量
可能是這樣定義的
public static final String ERROR="error";
2017-06-20
ERROR 其實就是字符串“error”,而不是“ERROR”