liferay怎么从一个页面链接到另一个页面

flyingcn 2008-06-23
我 用iframe portlet包含几个页面进来,当点击的时候希望整个页面切换到另一个页面,该如何写代码?
请指教
fb1984 2008-09-26
http://172.17.193.146:8080/user/olive/home?p_p_id=79&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_79_struts_action=%2Fenterprise_admin%2Fedit_user&_79_redirect=http%3A%2F%2F172.17.193.146%3A8080%2Fuser%2Folive%2Fhome%3Fp_p_id%3D79%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26_79_struts_action%3D%252Fenterprise_admin%252Fview%26_79_tabs1%3Dusers%26_79_advancedSearch%3Dfalse%26_79_andOperator%3Dtrue%26_79_active%3Dtrue%26_79_organizationId%3D0%26_79_roleId%3D0%26_79_userGroupId%3D0%26_79_cur%3D1&_79_screenName=



假设Structs-path 中含有Porlet的名称79 此名称与porlet-custom.xml文件中的<porlet-name>79</portlet-name>中的值相对应

对应的xml文件中存在的
<init-param>
<name>view-action</name>
<value>/open_id/view</value>
</init-param>

value值与struts-config.xml文件中的

<action path="/open_id/view" type="com.liferay.portlet.openid.action.ViewAction">

<forward name="portlet.open_id.view" path="portlet.open_id.view" />

</action>
path值对应,对应的ation中的<forward name="portlet.open_id.view" 与tiles-def.xml文件中的
<definition name="portlet.open_id.view" extends="portlet.open_id">

<put name="portlet_content" value="/portlet/open_id/view.jsp" />

</definition>

<definition name="portlet.open_id.view" 的值对应 最后定向到value="/portlet/open_id/view.jsp"显示view.jsp的页面
jone33 2009-08-14
Global site tag (gtag.js) - Google Analytics