--- On Fri, 8/22/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> But if I don't have "p" property in my action
> class, I got warning in log ParamsPrepareParams setting String...
> interceptor and so on?
...
So put a "p" parameter in your action.
Dave
;> href="%{display_chart}"
>> >>>>>> >> theme="ajax"
>> >>>>>> targets="*chart_div*"
>> />
>> >>>>>> >>
>> >>>>>> >>
>> >&
;>>>>> >>
>>>>>>> >>
>>>>>>> >>
>>>>>>> >> ]
>>>>>>> >>
>>>>>>> >>
&
t;
> >>>>>> >> ]
> >>>>>> >>
> >>>>>> >>
> >>>>>> >> display_chart.jsp [
> >>>>>> >>
> >>>>>> >>
> >>>>>> >&g
does not
endorse distribution to any party other than intended recipient. Sender does
not necessarily endorse content contained within this transmission.
> Date: Thu, 21 Aug 2008 08:24:41 -0700
> From: [EMAIL PROTECTED]
> Subject: [OT] Re: Struts 2 And JFreeChart
> To: user@strut
;>>>> >>
>>>>>> >> /MyApp/user/DrawChart_display.action
>>>>>> >>
>>>>>> >>
>>>>>> >> ]
>>>>>> >>
t;>> >> ="struts-default,jfreechart-default">
>>>>> >>
>>>>> >> >>>> name="DrawChart_input" method="input"
>>>>> >> class=".xxx.DrawChart">
>>>>>
--- On Thu, 8/21/08, Milan Milanovic wrote:
> I don't understand this solution, what is "p" parameter, and
> whait is "RANDOM"?
This is a common technique to throw off caching mechanisms.
The "p" parameter is a dummy parameter that gets a random value so that when
the submission is made, since
gt;
>>>> >> >>> name="input">form.jsp
>>>> >>
>>>> >>
>>>> >> >>> name="DrawChart_draw" method="draw"
>&g
t; name="DrawChart_input" method="input"
>>>> >> class=".xxx.DrawChart">
>>>> >> >>> name="input">form.jsp
>>>> >>
>>>> >>
>>>> >> >>> name="DrawChar
uot;success">/jsp/display_chart.jsp
>>> >>
>>> >>
>>> >> >> name="DrawChart_display"
>>> method="display"
>>> >> class="
created an img tag such that testChart.action
--
View this message in context:
http://www.nabble.com/Struts-2-And-JFreeChart-tp18740589p18861160.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To uns
t; //chart creation logic.
>> > //generate chart object
>> > chart = ....
>> > session =
>> > session.put("CHART", chart
/**
> > * returns chart obejct from the session.
> >This methos is used by display_chart.jsp
> > */
> > public String display() throws Exception {
> > session = ...get session ...
> >
300
>> >>
>> >>
>> >>
>> >>
>> >> ]
>> >>
>> >>
>> >> DrawChart.java [
>> >> JFreeChart chart;
>> >> p
--- On Wed, 8/6/08, dynamicd <[EMAIL PROTECTED]> wrote:
> Also tried implementing the SessionAware. However the same thing.
Why?
Did you try setting the headers for not caching?
Dave
> dynamicd wrote:
> >
> > This is cool.. I tried it out. However once the
> > chart_display.jsp is called the
;> * returns chart obejct from the session.
>>This methos is used by display_chart.jsp
>> */
>> public String display() throws Exception {
>> session = ...get session ...
>> this.chart = (JFreeChart) session.get("CHART");
>> i
quot;CHART");
> if(chart == null) {
> addActionError(getText("error.nochart"));
> return ERROR;
> }
> return SUCCESS;
> }
>
> // this method will get called if we specify
Hello,
See if this helps you.
I have a form with remote DIV which displays chart after user clicks on
submit.
Trick here is to generate chart object, store it in session and display it
in separate JSP. Remove the form part if you want to display just the
dynamic-DIV using Chart image.
Form.jsp
ling List
>> Date: Thu, 31 Jul 2008 02:28:41 -0400
>> To:
>> Subject: Re: Struts 2 And JFreeChart
>>
>> I don't see what Ajax has to do with this... It sounds more like an HTTP
>> caching issue. Cree, if you do a page refresh, is the image updated
>>
e Harper <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: Thu, 31 Jul 2008 02:28:41 -0400
> To:
> Subject: Re: Struts 2 And JFreeChart
>
> I don't see what Ajax has to do with this... It sounds more like an HTTP
> caching issue. Cree, if you do a page r
//prevents caching at the proxy
server
%>
?
Martin
- Original Message -
From: "Laurie Harper" <[EMAIL PROTECTED]>
To:
Sent: Thursday, July 31, 2008 2:28 AM
Subject: Re: Struts 2 And JFreeChart
I don't see what Ajax has to do with this... It sounds more like an HTTP
cach
ax is text only so you can't use it with an image type.
Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC
From: cree <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List
Date: Wed, 30 Jul 2008 12:14:02 -0700 (PDT)
To:
Subject: Struts 2 And JFreeChart
Hello Every
Ajax is text only so you can't use it with an image type.
Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC
> From: cree <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: Wed, 30 Jul 2008 12:14:02 -0700 (PDT)
> To:
> Subject: Struts 2 An
aded, but the action itself will never get reloaded. The action
would not get executed at all.
My question is whether there is a way I can manually force the img tag to
invoke the action itself.
Thanks for any input
--
View this message in context:
http://www.nabble.com/Str
25 matches
Mail list logo