You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Nils-Helge Garli (JIRA)" <ji...@apache.org> on 2007/08/12 07:47:18 UTC

[jira] Created: (WW-2105) Use PortletResult for the redirect action result type

Use PortletResult for the redirect action result type
-----------------------------------------------------

                 Key: WW-2105
                 URL: https://issues.apache.org/struts/browse/WW-2105
             Project: Struts 2
          Issue Type: Improvement
          Components: Portlet Integration
            Reporter: Nils-Helge Garli
            Assignee: Nils-Helge Garli
             Fix For: Future


To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2105) Handle redirectAction result type in a portlet

Posted by "Nils-Helge Garli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nils-Helge Garli updated WW-2105:
---------------------------------

    Fix Version/s:     (was: Future)
                   2.1.0

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.0
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (WW-2105) Handle redirectAction result type in a portlet

Posted by "Rene Gielen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rene Gielen reassigned WW-2105:
-------------------------------

    Assignee: Nils-Helge Garli  (was: Rene Gielen)

Backport to 2.0.10 checked in.

Nils, please review.

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.0.10, 2.1.0
>
>         Attachments: ageGroup.jsp, AgeGroupAction.java
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2105) Handle redirectAction result type in a portlet

Posted by "Nils-Helge Garli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41804 ] 

Nils-Helge Garli commented on WW-2105:
--------------------------------------

There were some syntax differences that the current PortletResult didn't handle, so I added a new PortletActionRedirectResult, which is identical to the ServletActionRedirectResult.

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.0
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WW-2105) Handle redirectAction result type in a portlet

Posted by "Nils-Helge Garli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nils-Helge Garli resolved WW-2105.
----------------------------------

    Resolution: Fixed

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.0
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2105) Handle redirectAction result type in a portlet

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41810 ] 

James Holmes commented on WW-2105:
----------------------------------

I think I spoke to soon. I am seeing an issue now with the PortletActionRedirectResult.

Here is the scenario. I have a page that has a form on it. I submit the page to an action that adds a record to the database.  The action's success result uses PortletActionRedirectResult to redirect back to the original page that the form was on. This all works great. The problem is that when the original page comes up after processing the action and adding the record to the databse, the form is repopulated with the original values. In standalone Web app mode this doesn't occur because I believe a true new request is being made.

I believe this might be able to be resolved by creating a new action instance in the PortletActionRedirectResult instead of using the original one. This issue might be a symptom of the fact that I am using one action class for displaying the page and for adding, updating, deleting. I simply use different methods for the different behaviors. Does that make sense?

Any ideas?

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.0
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2105) Handle redirectAction result type in a portlet

Posted by "Rene Gielen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rene Gielen updated WW-2105:
----------------------------

    Fix Version/s: 2.1.0

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Rene Gielen
>             Fix For: 2.0.10, 2.1.0
>
>         Attachments: ageGroup.jsp, AgeGroupAction.java
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2105) Handle redirectAction result type in a portlet

Posted by "Rene Gielen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rene Gielen updated WW-2105:
----------------------------

    Fix Version/s:     (was: 2.1.0)
                   2.0.10

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Rene Gielen
>             Fix For: 2.0.10
>
>         Attachments: ageGroup.jsp, AgeGroupAction.java
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2105) Handle redirectAction result type in a portlet

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41808 ] 

James Holmes commented on WW-2105:
----------------------------------

Many thanks! I am using the latest snapshot with this code and it is working for me so far.

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.0
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2105) Handle redirectAction result type in a portlet

Posted by "Nils-Helge Garli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41859 ] 

Nils-Helge Garli commented on WW-2105:
--------------------------------------

oh...one more thing. The portletDefaultStack contains a "portletState" interceptor which is supposed to be the very first in the stack, so you should consider either moving your custom interceptor to the bottom, or create your own stack based on the portletDefaultStack.

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.0
>
>         Attachments: ageGroup.jsp, AgeGroupAction.java
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (WW-2105) Handle redirectAction result type in a portlet

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes reopened WW-2105:
------------------------------


> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.0
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2105) Handle redirectAction result type in a portlet

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41841 ] 

James Holmes commented on WW-2105:
----------------------------------

Here is the pertinent portion of the JSP:

<s:actionmessage/>

<s:url id="tableUrl" action="ageGroup" namespace="/admin"/>
<display:table id="row" name="ageGroups" requestURI="${tableUrl}" defaultsort="2" class="listing">

	<display:setProperty name="basic.empty.showtable" value="true"/>
	<display:setProperty name="basic.msg.empty_list_row" value="<tr class=\"empty\"><td colspan=\"{0}\">No age groups exist.</td></tr>"/>
	
	<display:column property="id" title="Id" sortable="true" headerClass="sortable"/>
	<display:column property="name" title="Name" sortable="true" headerClass="sortable"/>

	<s:url id="updateUrl" action="ageGroupViewUpdate" namespace="/admin">
    	<s:param name="ageGroup.id" value="#attr.row.id"/>
	</s:url>
	<s:url id="deleteUrl" action="ageGroupDelete" namespace="/admin">
    	<s:param name="ageGroup.id" value="#attr.row.id"/>
	</s:url>

	<display:column><s:a href="%{updateUrl}">Update</s:a> | <s:a href="%{deleteUrl}" onclick="return confirm('Delete %{#attr.row.name} age group?')">Delete</s:a></display:column>
</display:table><br>

<s:fielderror/>

<s:form action="ageGroupAdd" namespace="/admin" method="post" theme="simple">
<table>
	<tr>
		<td align="right">*Name:</td>
		<td><s:textfield name="ageGroup.name" size="40" maxlength="50"/></td>
	</tr>
	<tr>
		<td align="right"></td>
		<td><s:submit value="Add"/></td>
	</tr>
</table>
</s:form>

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.0
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WW-2105) Handle redirectAction result type in a portlet

Posted by "Nils-Helge Garli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nils-Helge Garli resolved WW-2105.
----------------------------------

    Resolution: Fixed

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.0.10, 2.1.0
>
>         Attachments: ageGroup.jsp, AgeGroupAction.java
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2105) Handle redirectAction result type in a portlet

Posted by "Nils-Helge Garli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nils-Helge Garli updated WW-2105:
---------------------------------

    Issue Type: Bug  (was: Improvement)

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.0
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2105) Handle redirectAction result type in a portlet

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41900 ] 

James Holmes commented on WW-2105:
----------------------------------

Your latest changes fixed the PRG problem I was having with data redisplaying. You da man!

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.0
>
>         Attachments: ageGroup.jsp, AgeGroupAction.java
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WW-2105) Handle redirectAction result type in a portlet

Posted by "Nils-Helge Garli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nils-Helge Garli resolved WW-2105.
----------------------------------

    Resolution: Fixed

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.0
>
>         Attachments: ageGroup.jsp, AgeGroupAction.java
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2105) Handle redirectAction result type in a portlet

Posted by "Nils-Helge Garli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41836 ] 

Nils-Helge Garli commented on WW-2105:
--------------------------------------

Can you show the JSP with the form that both act as input and display the result?

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.0
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2105) Handle redirectAction result type in a portlet

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2105:
-----------------------------

    Attachment: ageGroup.jsp

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.0
>
>         Attachments: ageGroup.jsp, AgeGroupAction.java
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2105) Handle redirectAction result type in a portlet

Posted by "Nils-Helge Garli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41811 ] 

Nils-Helge Garli commented on WW-2105:
--------------------------------------

It's most likely because the valuestack is stored between the event and render phase. This is to handle validation errors and cases where PRG is not properly used, for instance if an action uses the dispatch result with a JSP. I need to figure out for which scenarios this process can be skipped. If you're interested in where this happens, it's in the PortletStateInterceptor.

If you have time, can you attach an example configuration to reproduce the issue?

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.0
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2105) Handle redirectAction result type in a portlet

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41835 ] 

James Holmes commented on WW-2105:
----------------------------------

Ok, I have pasted the configuration for one set of CRUD pages here:

<action name="ageGroup" class="admin.AgeGroupAction">
	<interceptor-ref name="store"/>
	<interceptor-ref name="portletDefaultStack"/>

	<result>/WEB-INF/jsp/admin/ageGroup.jsp</result>
</action>
<action name="ageGroupAdd" class="admin.AgeGroupAction" method="add">
	<interceptor-ref name="store">
		<param name="operationMode">STORE</param>
	</interceptor-ref>
	<interceptor-ref name="portletDefaultStack"/>

	<result name="input">/WEB-INF/jsp/admin/ageGroup.jsp</result>
	<result type="redirectAction">
		<param name="actionName">ageGroup</param>
		<param name="operationMode">RETRIEVE</param>
	</result>
</action>
<action name="ageGroupViewUpdate" class="admin.AgeGroupAction" method="viewUpdate">
	<result>/WEB-INF/jsp/admin/ageGroupUpdate.jsp</result>
</action>
<action name="ageGroupUpdate" class="admin.AgeGroupAction" method="update">
	<interceptor-ref name="store">
		<param name="operationMode">STORE</param>
	</interceptor-ref>
	<interceptor-ref name="portletDefaultStack"/>

	<result name="input">/WEB-INF/jsp/admin/ageGroupUpdate.jsp</result>
	<result type="redirectAction">
		<param name="actionName">ageGroup</param>
		<param name="operationMode">RETRIEVE</param>
	</result>
</action>
<action name="ageGroupDelete" class="admin.AgeGroupAction" method="delete">
	<interceptor-ref name="store">
		<param name="operationMode">STORE</param>
	</interceptor-ref>
	<interceptor-ref name="portletDefaultStack"/>

	<result type="redirectAction">
		<param name="actionName">ageGroup</param>
		<param name="operationMode">RETRIEVE</param>
	</result>
</action>

Let me know if you need anything else to debug this issue.

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.0
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (WW-2105) Handle redirectAction result type in a portlet

Posted by "Rene Gielen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rene Gielen reopened WW-2105:
-----------------------------

      Assignee: Rene Gielen  (was: Nils-Helge Garli)

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Rene Gielen
>             Fix For: 2.1.0
>
>         Attachments: ageGroup.jsp, AgeGroupAction.java
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2105) Handle redirectAction result type in a portlet

Posted by "Nils-Helge Garli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41858 ] 

Nils-Helge Garli commented on WW-2105:
--------------------------------------

I have committed a fix where a proper redirect (not through a "renderDirect" action) does not restore the state between the phases. Could you try it out? It doesn't seem to break anything, so if it works, I'll consider it fixed.

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.0
>
>         Attachments: ageGroup.jsp, AgeGroupAction.java
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2105) Handle redirectAction result type in a portlet

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2105:
-----------------------------

    Attachment: AgeGroupAction.java

Here is the action class I am using to process the page. It handles all CRUD operations.

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.0
>
>         Attachments: AgeGroupAction.java
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2105) Handle redirectAction result type in a portlet

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41843 ] 

James Holmes commented on WW-2105:
----------------------------------

I attached the JSP and action class. The action performs all of the CRUD operations. The JSP handles displaying the master list, adding new entries to the list, and removing entries from the list. I have a separate JSP page for updates.

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.0
>
>         Attachments: ageGroup.jsp, AgeGroupAction.java
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2105) Handle redirectAction result type in a portlet

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2105:
-----------------------------

    Comment: was deleted

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.0
>
>         Attachments: AgeGroupAction.java
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2105) Handle redirectAction result type in a portlet

Posted by "Nils-Helge Garli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nils-Helge Garli updated WW-2105:
---------------------------------

    Summary: Handle redirectAction result type in a portlet  (was: Use PortletResult for the redirect action result type)

> Handle redirectAction result type in a portlet
> ----------------------------------------------
>
>                 Key: WW-2105
>                 URL: https://issues.apache.org/struts/browse/WW-2105
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: Future
>
>
> To ease migration of existing web application that use the redirect action result type, this result type should point to PortletResult when running in a portlet environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.