I think I found the source of this issue.  The struts-plugin.xml for the
JFreeChart plugin is as follows:

<struts>
    <package name="jfreechart-default">
    
        <result-types>
                <result-type name="chart"
class="org.apache.struts2.dispatcher.ChartResult">
                        150
                        200
                </result-type>
        </result-types>
    </package>

</struts>

That is, it does not extend struts-default.  Therefore no interceptors are
defined and hence the behavior I'm seeing.  I modified this file to extend
struts default and I get the correct behavior.

Thanks for everyone's help!


mihel wrote:
> 
> Phil404 wrote:
>> I don't think this is the problem since if I view source the generate
>> code
>> says:
>> 
>> <--img
>> src='/surveytortoise-main/piechart.action?visual=10&amp;auditory=15&amp;kinesthetic=20'
>> />
>> 
>> So, the code seems to be correct.  Why are these parameters not being set
>> by
>> Struts2?  Please help!
> 
> Does any action in your app gets parameters set?
> The link above should definitely call setters on action class
> unless something is screwed up in struts.xml or Struts2 build.
> Make sure the defaults are being used in struts.xml
> <package name="xxx" extends="struts-default">
> and defaultStack is present in action interceptors.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Newbie-question-about-parameters-for-an-Action-tf4506130.html#a12867502
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to