Re: Problem Using Struts 2.1.8 Portlet Plugin With redirectAction

2009-10-05 Thread phillips1021

Nils - thanks for the assistance.  I did add the ".action" to the actionName
and it now works in my Portlet Container (Pluto 2.0).

For example:



index.action

/portlet/employeeFormPortlet.jsp


Bruce

Yes, that was what I meant, and I worked just fine with me, using your
web application (on Jetty/pluto). I haven't had time looking any more
into it, but I'll keep you updated.

Nils-H


-- 
View this message in context: 
http://www.nabble.com/Problem-Using-Struts-2.1.8-Portlet-Plugin-With-redirectAction-tp25702898p25754728.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Problem Using Struts 2.1.8 Portlet Plugin With redirectAction

2009-10-05 Thread Nils-Helge Garli Hegvik
Yes, that was what I meant, and I worked just fine with me, using your
web application (on Jetty/pluto). I haven't had time looking any more
into it, but I'll keep you updated.

Nils-H

On Fri, Oct 2, 2009 at 3:40 PM, phillips1021  wrote:
>
> Nils - I'm not following how to implement your quick fix.  Do you mean I
> should do this:
>
>                        
>                                index.action
>                        
>
> I tried the above and it didn't work for me.
>
> Thank you for researching this issue so quickly.  We would like to move to
> Struts 2.1.8 (we are still on 2.0.14 for our Struts 2 applications that are
> also portlets.
>
> Bruce
>
>
> Definitively a bug somewhere. A quick fix is to add ".action" in the
> configuration for the redirectAction result.
> --
> View this message in context: 
> http://www.nabble.com/Problem-Using-Struts-2.1.8-Portlet-Plugin-With-redirectAction-tp25702898p25716027.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

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



Re: Problem Using Struts 2.1.8 Portlet Plugin With redirectAction

2009-10-02 Thread phillips1021

Nils - I'm not following how to implement your quick fix.  Do you mean I
should do this:


index.action


I tried the above and it didn't work for me.

Thank you for researching this issue so quickly.  We would like to move to
Struts 2.1.8 (we are still on 2.0.14 for our Struts 2 applications that are
also portlets.

Bruce


Definitively a bug somewhere. A quick fix is to add ".action" in the
configuration for the redirectAction result. 
-- 
View this message in context: 
http://www.nabble.com/Problem-Using-Struts-2.1.8-Portlet-Plugin-With-redirectAction-tp25702898p25716027.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Problem Using Struts 2.1.8 Portlet Plugin With redirectAction

2009-10-01 Thread Nils-Helge Garli Hegvik
Definitively a bug somewhere. A quick fix is to add ".action" in the
configuration for the redirectAction result. Something has changed
from 2.1.6 and 2.1.8 that caused this. I'll investigate further. It
also fails in the sample portlet application, which I did click
through before 2.1.8...

Nils-H

On Thu, Oct 1, 2009 at 7:52 PM, Nils-Helge Garli Hegvik
 wrote:
> It Should work with redirectAction. I'll look into it.
>
> Nils-H
>
> On Thu, Oct 1, 2009 at 7:28 PM, phillips1021  wrote:
>>
>> I changed my struts.xml configuration to use type chain instead of type
>> redirectAction
>>
>>                > class="com.struts2.tutorial.action.EmployeeAction" method="delete">
>>                        index
>>                        > name="input">/portlet/employeeFormPortlet.jsp
>>                
>>
>> and now it works.
>>
>> So despite the warning about using type="chain" here:
>>
>> http://struts.apache.org/2.1.8/docs/action-chaining.html
>> http://struts.apache.org/2.1.8/docs/action-chaining.html
>>
>> is it appropriate to use type="chain" for a Struts 2 portlet application?
>>
>> Bruce
>>
>>
>> I have a Struts 2 portlet application that works fine using Struts 2.0.14.
>>
>> We could not get it to work using 2.1.6 and the 2.1.6 portlet plugin due to
>> the problem the 2.1.6 portlet plugin version had with the s:form tag (see
>> http://www.nabble.com/Error-when-deploying-portlets-beside-a-normal-Struts2-web-app--tc23981728.html#a24117787
>> http://www.nabble.com/Error-when-deploying-portlets-beside-a-normal-Struts2-web-app--tc23981728.html#a24117787
>> (JIRA Issue WW-3164).
>>
>> Now that Struts 2.1.8 is out I wanted to use that version in my Struts 2
>> portlet application.
>>
>> After upgrading my pom.xml to 2.1.8 and adding the dependency for the 2.1.8
>> portlet plugin I rebuild and tested my Struts 2 portlet application.
>>
>> Struts 2.1.8 portlet plugin fixed the issue with the s:form tag.  However,
>> now my actions for the portlet view that use type="redirectAction" fail.
>> --
>> View this message in context: 
>> http://www.nabble.com/Problem-Using-Struts-2.1.8-Portlet-Plugin-With-redirectAction-tp25702898p25703292.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>

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



Re: Problem Using Struts 2.1.8 Portlet Plugin With redirectAction

2009-10-01 Thread Nils-Helge Garli Hegvik
It Should work with redirectAction. I'll look into it.

Nils-H

On Thu, Oct 1, 2009 at 7:28 PM, phillips1021  wrote:
>
> I changed my struts.xml configuration to use type chain instead of type
> redirectAction
>
>                 class="com.struts2.tutorial.action.EmployeeAction" method="delete">
>                        index
>                         name="input">/portlet/employeeFormPortlet.jsp
>                
>
> and now it works.
>
> So despite the warning about using type="chain" here:
>
> http://struts.apache.org/2.1.8/docs/action-chaining.html
> http://struts.apache.org/2.1.8/docs/action-chaining.html
>
> is it appropriate to use type="chain" for a Struts 2 portlet application?
>
> Bruce
>
>
> I have a Struts 2 portlet application that works fine using Struts 2.0.14.
>
> We could not get it to work using 2.1.6 and the 2.1.6 portlet plugin due to
> the problem the 2.1.6 portlet plugin version had with the s:form tag (see
> http://www.nabble.com/Error-when-deploying-portlets-beside-a-normal-Struts2-web-app--tc23981728.html#a24117787
> http://www.nabble.com/Error-when-deploying-portlets-beside-a-normal-Struts2-web-app--tc23981728.html#a24117787
> (JIRA Issue WW-3164).
>
> Now that Struts 2.1.8 is out I wanted to use that version in my Struts 2
> portlet application.
>
> After upgrading my pom.xml to 2.1.8 and adding the dependency for the 2.1.8
> portlet plugin I rebuild and tested my Struts 2 portlet application.
>
> Struts 2.1.8 portlet plugin fixed the issue with the s:form tag.  However,
> now my actions for the portlet view that use type="redirectAction" fail.
> --
> View this message in context: 
> http://www.nabble.com/Problem-Using-Struts-2.1.8-Portlet-Plugin-With-redirectAction-tp25702898p25703292.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

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



Re: Problem Using Struts 2.1.8 Portlet Plugin With redirectAction

2009-10-01 Thread phillips1021

I changed my struts.xml configuration to use type chain instead of type
redirectAction


index
/portlet/employeeFormPortlet.jsp


and now it works.  

So despite the warning about using type="chain" here:  

http://struts.apache.org/2.1.8/docs/action-chaining.html
http://struts.apache.org/2.1.8/docs/action-chaining.html 

is it appropriate to use type="chain" for a Struts 2 portlet application?

Bruce


I have a Struts 2 portlet application that works fine using Struts 2.0.14.  

We could not get it to work using 2.1.6 and the 2.1.6 portlet plugin due to
the problem the 2.1.6 portlet plugin version had with the s:form tag (see 
http://www.nabble.com/Error-when-deploying-portlets-beside-a-normal-Struts2-web-app--tc23981728.html#a24117787
http://www.nabble.com/Error-when-deploying-portlets-beside-a-normal-Struts2-web-app--tc23981728.html#a24117787
 
(JIRA Issue WW-3164).

Now that Struts 2.1.8 is out I wanted to use that version in my Struts 2
portlet application.

After upgrading my pom.xml to 2.1.8 and adding the dependency for the 2.1.8
portlet plugin I rebuild and tested my Struts 2 portlet application.

Struts 2.1.8 portlet plugin fixed the issue with the s:form tag.  However,
now my actions for the portlet view that use type="redirectAction" fail.  
-- 
View this message in context: 
http://www.nabble.com/Problem-Using-Struts-2.1.8-Portlet-Plugin-With-redirectAction-tp25702898p25703292.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Problem Using Struts 2.1.8 Portlet Plugin With redirectAction

2009-10-01 Thread phillips1021

I have a Struts 2 portlet application that works fine using Struts 2.0.14.  

We could not get it to work using 2.1.6 and the 2.1.6 portlet plugin due to
the problem the 2.1.6 portlet plugin version had with the s:form tag (see 
http://www.nabble.com/Error-when-deploying-portlets-beside-a-normal-Struts2-web-app--tc23981728.html#a24117787
http://www.nabble.com/Error-when-deploying-portlets-beside-a-normal-Struts2-web-app--tc23981728.html#a24117787
 
(JIRA Issue WW-3164).

Now that Struts 2.1.8 is out I wanted to use that version in my Struts 2
portlet application.

After upgrading my pom.xml to 2.1.8 and adding the dependency for the 2.1.8
portlet plugin I rebuild and tested my Struts 2 portlet application.

Struts 2.1.8 portlet plugin fixed the issue with the s:form tag.  However,
now my actions for the portlet view that use type="redirectAction" fail. 
Struts displays the following:

The requested resource (/struts2crudportletexamplefinish/view/index.action)
is not available

You can download an example application (Maven 2, Eclipse) here:  
http://www.brucephillips.name/struts/Struts2CRUDPortletExample_Finish.zip
http://www.brucephillips.name/struts/Struts2CRUDPortletExample_Finish.zip  
if you want to see the entire source code or run the application.

Here is an excerpt from my struts.xml file:







index

/portlet/employeeFormPortlet.jsp




Here is how I create the delete link that calls the deleteEmployee action:




 http://struts.apache.org/2.1.8/docs/struts-2-portlet-tutorial.html
http://struts.apache.org/2.1.8/docs/struts-2-portlet-tutorial.html ) but
cannot figure out why this is not working when it did work in 2.0.14

Any help would be greatly appreciated.

Bruce 

-- 
View this message in context: 
http://www.nabble.com/Problem-Using-Struts-2.1.8-Portlet-Plugin-With-redirectAction-tp25702898p25702898.html
Sent from the Struts - User mailing list archive at Nabble.com.


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