}
>>>>>>>>>
>>>>>>>>> public int getCount() {
>>>>>>>>> return ++counter;
>>>>>>>>> }
>>>>>>>>>
>>>>>>>>> public String getData() {
>>>>>>>>> return data;
>>>
What is happening is that there is an error on the request, probably the
action mapping is wrong, and it is returning a page with the error, but
that page has the same menu as showcase, that's why your are seeing it
twice. Put the full url for the action on the address bar, after you get
that t
gt;>>>>>> request.setAttribute("decorator", "none");
>>>>>>> response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
>>>>>>> response.setHeader("Pragma","no-cache");
Are you sure you are not adding anything else to it and you are looking
at the right one? I just check it out on showcase and it only loads
once. Can you see if you have the same problem on showcase?
regards
musachy
walidito wrote:
Sorry but it didn't...
It loads it many times
Musachy B
xpires", 0); //prevents caching at the
>>>>> proxy server
>>>>> %>
>>>>>
>>>>> Result: @
>>>>>
>>>>>
>>>>>
>>>>> musachy
>>>>>
>>>>> w
That needs to be fixed in struts, this is the jira ticket:
https://issues.apache.org/struts/browse/WW-1551
from showcase:
Initial Content
That should load the div only once.
musachy
walidito wrote:
Hi,
Actually, I get this error both in my eclipse "console" and in my web page
(debug ena
>> 18: loadingText="loading...">
>>>> 19: Initial Content
>>>>
>>>>
>>>> In other word, a basic ajax component that allows a refreshment of only
>>>> a
>>>> part of my page.
>>>>
>&g
ingText="loading...">
>>>> 19: Initial Content
>>>>
>>>>
>>>> In other word, a basic ajax component that allows a refreshment of only
>>>> a
>>>> part of my page.
>>>>
>>>> But I didn'
You are seeing that error in your server logs right? There's a couple of
things that we still need to fix for this integration between Struts and
Dojo, but the application should work anyway.
musachy
walidito wrote:
thanks, but I get an error with the code you gave me :
SEVERE: Error setting
What release of Struts2 are you using and which browsers?
/Ian
walidito wrote:
thanks, but I get an error with the code you gave me :
SEVERE: Error setting expr 'dojo.transport' with value
'[Ljava.lang.String;@179567c'
ognl.OgnlException: target is null for setProperty(null, "transport",
[Ljav
on and action mapping.
>> For the moment I've tried to put a "success" return in my action ( is it
>> enough ?), but I don't see what to put in my action mapping (i mean
>> inside
>> the tag. If I put nothing, of course it's
>> wrong.
>> I
I think you should take a look at the Struts2/Webwork tutorials
http://www.opensymphony.com/webwork/wikidocs/Tutorial.html and
http://struts.apache.org/2.x/docs/tutorials.html
If you look at the showcase code you will see this for the AjaxTest action:
in struts-ajax.xml:
class="org.apache.str
result, It creates an infinite loop (always
displays "loading").
Can sobdy help please?
--
View this message in context:
http://www.nabble.com/Still-Ajax-and-Struts-2-tf2776835.html#a7746954
Sent from the Struts - User mailing list archive at Nabble.com.
13 matches
Mail list logo