Matt, I was trying to make it work with default dojo which comes with struts but was getting dojo not defined error as dojo.js was not being loaded, while all others js files (loaded by s:head ) were. Then I added dojo to my scripts folder as suggested by you below, but surprisingly when I checked javascripts on my page from Firefox, /struts/dojo/dojo.js started loading too! Now I have removed dojo files from /scripts/dojo which I added and everything is working like a charm.I tried to recreate original error by running mvn clean but could not break it! Another issue which I encountered was top menu was not appearing in the page where ajax content was embedded,but it was a decoration issue and adding parameter ajax=true to ajax action url resolved it. Bottomline : I am going to make up for my lost beers tonight :) Arvinder
mraible wrote: > > There's 3 steps to make Dojo work (sorry I don't have more details): > > 1. Download and add Dojo to your webapp/scripts folder. > 2. Modify decorators/default.jsp to add Dojo to your head, pointing at > your installed version of Dojo. > 3. Modify web.xml so scripts/dojo is an included path for static files. > > Matt > > On 7/20/07, arvinder <[EMAIL PROTECTED]> wrote: >> >> I am trying a very simple Ajax call in jsp but I cannot get it to >> work..delaying my friday beer session:) >> I have <s:head/> 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 >> >> What I am missing? Going through the past posts I have found out that >> most >> of the fixes are present in 2m5. But I must be missing something! >> Arvinder >> >> >> >> -- >> View this message in context: >> http://www.nabble.com/DOJO-problem-in-struts-basic-2m5-tf4120841s2369.html#a11719545 >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > http://raibledesigns.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/DOJO-problem-in-struts-basic-2m5-tf4120841s2369.html#a11726500 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]