0
嗨我們正在開發一個Struts2Portlet WebSpherePortal6.0.1中的應用程序。在我的應用程序中,我希望在填充我的struts動作類中的驗證後,重定向到另一個portlet頁面。如何實現它。請幫幫我。我想從Struts2Portlet Action Class調用/重定向到Portal頁面?
在此先感謝。
嗨我們正在開發一個Struts2Portlet WebSpherePortal6.0.1中的應用程序。在我的應用程序中,我希望在填充我的struts動作類中的驗證後,重定向到另一個portlet頁面。如何實現它。請幫幫我。我想從Struts2Portlet Action Class調用/重定向到Portal頁面?
在此先感謝。
I have done some R&D to fix this issue,finally i found a solution.We cant call/redirect the portal page from struts2Portlet Action class.We can have to give a result type in strut action class,then we have to configure the action in the result.
<action name="view" class="com.ibm.rock.ViewAction" method="prepareview">
<result name="view">*/view/viewportalpage.action*</result>
</action>
<action name="viewportalpage" class="com.ibm.rock.ViewAction" method="prepareview">
<result name="preview">/_Rock/jsp/html/Preview.jsp</result>
</action>
Synatax:
<result name="success">*/Namespace/view.action*</result>
<action name="view" class="com.ibm.rock.ViewAction" method="prepareview">
<result name="preview">/_Rock/jsp/html/Preview.jsp</result>
</action>
這是包含你正在一個完全獨立的頁面上的門戶系統相同的portlet中的JSP頁面?如果單獨的portlet需要交叉portlet通信嗎? –