Hi All,

On Wed, Jun 10, 2009 at 06:25:07PM +0530, Kishan G. Chellap Paandy wrote:
> 
> Hi Wes,
> 
> Thanks for your quick reply. 
> So it a bug and I will file it in Struts2.

I've run into this recently too, and being new to Struts I initially
thought I had made some silly mistake.

The problem has been noted and apparently fixed and then un-fixed
(and then re-fixed?):

    https://issues.apache.org/struts/browse/WW-1714

These fixes don't seem to attack the problem at the root, though,
this is about setting an error level so that logs don't grow too
large too quickly. To me it would seem preferable to avoid trying
that doomed attempt to set a nonexistent parameter.

Best regards, Jan

> -----Original Message-----
> From: Wes Wannemacher [mailto:w...@wantii.com] 
> Sent: Wednesday, June 10, 2009 5:58 PM
> To: Struts Users Mailing List
> Subject: Re: Struts2 - redirectAction - ServletActionRedirectResult
> 
> On Wed, Jun 10, 2009 at 7:16 AM, Kishan
> Paandy<kishanchellapaand...@spanservices.com> wrote:
> >
> > Hi Folks,
> >
> > ?In Struts 2.1.6, if we have a <result name="success"
> > type="redirectAction">, for example,
> >
> > ?<result name="showReportResult" type="redirectAction">
> > ? ? ? ? ?generateReport
> > ? ? ? ? ?/genReport
> > ? ? ? ? ?pie
> >
> > Refer to:
> > http://struts.apache.org/2.1.6/struts2-core/apidocs/org/apache/struts2/dispatcher/ServletActionRedirectResult.html
> >
> > We will get errors in the log as:
> >
> > ERROR (CommonsLogger.java:27) - Unable to set parameter [reportType] in
> > result of type [org.apache.struts2.dispatcher.ServletActionRedirectResult]
> > Caught OgnlException while setting property ' reportType ' on type
> > 'org.apache.struts2.dispatcher.ServletActionRedirectResult'. - Class:
> > ognl.ObjectPropertyAccessor
> > File: ObjectPropertyAccessor.java
> > Method: setProperty
> > Line: 132 - ognl/ObjectPropertyAccessor.java:132:-1

[snip]

-- 
 +- Jan T. Kim -------------------------------------------------------+
 |             email: j....@uea.ac.uk                                 |
 |             WWW:   http://www.cmp.uea.ac.uk/people/jtk             |
 *-----=<  hierarchical systems are for files, not for humans  >=-----*

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

Reply via email to