?
1:
在
struts1.2.7
中使用
mappingdispatchAction
?
parameter
中直接來定義的就是
METHOD
的
name
,
一個
/xxxx.do
用一個
<action mapping…/>
來定義比如
?
?
<action path=”/add”
parameter=”add”
type=”xxxextMappingdispatchAction”
>
<forward name=”success” path=”/addsuccess.jsp”/>
</acton>
?
<action path=”/edit”
parameter=”edit”
type=”xxxextMappingdispatchAction”
>
<forward name=”success” path=”/editsuccess.jsp”/>
</action>
看一下STRUTS的源代碼,其實實現就是java relection非常的簡單
posted on 2006-04-13 08:53
小小程序程序員混口飯吃 閱讀(710)
評論(0) 編輯 收藏 所屬分類:
java