使用struts2標籤<s:action無法顯示引用頁面問題

  使用過程中參考:http://www.cnblogs.com/lihuiyy/archive/2012/03/23/2411601.html


個人使用:

1、引用頁面

<s:action name="getAllNewsSort_show"   namespace="/" executeResult="true"  flush="true"/>



比引用的博客裏面多了個參數!!應該是版本有點區別吧!


2、不引用頁面,請求action返回到request中。獲取準備的數據。

在當前


                <s:action name="news_getRecentNews" namespace="/" executeResult="false" var="temp" flush="true" />
                <s:property value="#request.news_list"/>  news_list是放在request中的。


<s:action var="itemView" name="itemView" namespeac="/item" />
<s:property value="#itemView.items" /> 這裏的var就代表着那個action。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章