You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by arvinder <a_...@yahoo.com> on 2007/07/21 08:28:49 UTC

DOJO problem in struts 2.0.6

I am trying a very simple Ajax call in jsp but I cannot get it to work
I have <s:head theme="ajax" debug="true"/> in head and following in my jsp
body 

    <s:url id="ajaxText" value="ajaxSili.html"/> 

    <!-- Div where content will be displayed --> 
    <s:div theme="ajax" id="t1" href="%{ajaxText}"> 
        loading content... 
    </s:div> 

My ajax action is spitting some static content, but I never get that on this
page, but if I type in the action directly in browser the content is
displayed. 
Firefox throws up following errors in the former case 
dojo is not defined 
http://localhost:9090/silitrucker/struts/simple/dojoRequire.js 
dojo is not defined 
http://localhost:9090/silitrucker/struts/ajax/dojoRequire.js 

 I must be missing something very basic! 
Arvinder 

-- 
View this message in context: http://www.nabble.com/DOJO-problem-in-struts-2.0.6-tf4120974.html#a11719902
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: DOJO problem in struts 2.0.6

Posted by Musachy Barroso <mu...@gmail.com>.
If that's the first error on the log, then it would mean that the
dojo.jsfile is not getting loaded, you can verify that with the
Firefox Web Dev
toolbar or firebug.

musachy

On 7/21/07, arvinder <a_...@yahoo.com> wrote:
>
>
> I am trying a very simple Ajax call in jsp but I cannot get it to work
> I have <s:head theme="ajax" debug="true"/> in head and following in my jsp
> body
>
>     <s:url id="ajaxText" value="ajaxSili.html"/>
>
>     <!-- Div where content will be displayed -->
>     <s:div theme="ajax" id="t1" href="%{ajaxText}">
>         loading content...
>     </s:div>
>
> My ajax action is spitting some static content, but I never get that on
> this
> page, but if I type in the action directly in browser the content is
> displayed.
> Firefox throws up following errors in the former case
> dojo is not defined
> http://localhost:9090/silitrucker/struts/simple/dojoRequire.js
> dojo is not defined
> http://localhost:9090/silitrucker/struts/ajax/dojoRequire.js
>
> I must be missing something very basic!
> Arvinder
>
> --
> View this message in context:
> http://www.nabble.com/DOJO-problem-in-struts-2.0.6-tf4120974.html#a11719902
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd