struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alberto Gallardo <argr...@gmail.com>
Subject struts2-portlet2-plugin-2.1.8.1 in Liferay 6.0.5 - Post-Redirect-Get aka Redirect after post
Date Sun, 10 Oct 2010 21:41:58 GMT
I have tried the Struts 2 Portlet Tutorial
(https://cwiki.apache.org/confluence/display/WW/Struts+2+Portlet+Tutorial)
with the struts2-portlet2-plugin-2.1.8.1 plugin
(http://boss.bekk.no/display/BOSS/Struts+2+Portlet+2.0+Plugin), but
couldn't get the Post-Redirect-Get (PRG) working. The <result
type="redirectAction"> does not translate into a browser redirection.
(The portal builds though the appropriate target view).

Did anyone test the PRG with this plugin in Liferay 6 successfully?

Steps to reproduce:

   Select portlet view mode
   Fill-in name and url: name="myname"; url="myurl"
   Click "Add" button
      The server executes AddBookmarkAction.execute(), with
name="myname"; url="myurl"
      The server displays the same form (empty) again
   Press "F5"
      The server executes AddBookmarkAction.execute(), with
name="myname"; url="myurl"!!

Setup:
   App Server: Glassfish v.2.1.1
   Portal version: Liferay 6.0.5
   Struts Portlet Plugin version: struts2-portlet2-plugin-2.1.8.1
   Portlet class: org.apache.struts2.portlet.dispatcher.Jsr286Dispatcher

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message