Hello
I have problems with integration of struts application within Liferay using
struts bridge.
My struts-confg.xml (the important part)
<action-mappings>
<!-- mappings for login -->
<action
path="/Login"
type="org.sled.login.LoginAction"
name="loginForm"
scope="session"
validate="true"
input="/index.jsp"
>
<forward path="/GetUOLs.do" name="success" redirect="true"/>
<forward path="/loginerror.jsp" name="failure"/>
</action>
<action
path="/GetUOLs"
type="org.sled.login.GetUOLsAction">
<forward path="/getuols.jsp"
name="success"/>
</action>
<action
path="/LoginCourse"
type="org.sled.login.LoginCourseAction"
name="loginCourseForm"
validate="false">
<forward path="/PlayerWelcome.do" name="success"
redirect="true"/>
</action>
<!-- mappings for player -->
<action
path="/PlayerWelcome"
type="org.sled.player.PlayerWelcomeAction"
validate="false">
<forward path="/player.jsp" name="success"/>
</action>
<action
path="/Player"
type="org.sled.player.PlayerAction"
validate="false">
<forward path="/player.jsp" name="success"/>
<forward path="/PlayerWelcome.do" name="failure"/>
</action>
...
It
works like this - User have to login (/Login). If everything is ok than
the system checks what materials are available for this user(/GetUOLs)
and he gets a choice which course he wants to start (/getuols.jsp) Than
the approperiate data is shown to him (/LoginCourse ->
/PlayerWelcome ->player.jsp).
player.jsp looks like this:
<%@ taglib uri="http://portals.apache.org/bridges/struts/tags-portlet-html"
prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%= request.getAttribute("displayHTML") %>
Eveything
work fine till this point. After the course is presented to user he has
a possibility to choose different activties but after clicking at the
name of one of them nothing changes on the screen and the url in
browser is cut from:
http://localhost:8080/liferay/c/portal/layout?p_l_id=PRI.15.1&p_p_id=sled2_WAR_sled2&p_p_action=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-2&p_p_col_pos=0&p_p_col_count=1&_sled2_WAR_sled2__spage=%2FLoginCourse.do&_sled2_WAR_sled2__sorig=%2FGetUOLs.do
to
http://localhost:8080/liferay/c/portal/layout?p_l_id=PRI.15.1
When
I run it as web application everything works fine. Maybe someone could
help because Im fighting with it for a quite long time?
____________________________________________________________________________________
Shape Yahoo! in your own image. Join our Network Research Panel today!
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7