I am stuck at chapter 2 of Mastering Dojo because I am missing something that must be so obvious to everyone but me: How to set dojoroot.
The Dojo Getting Started page suggests accessing the dojo resources directly from AOL’s Content Distribution Network (CDN). This means that one must somehow assign the CDN’s URL to dojoroot, or do massive editing of all paths containing dojoroot to replace each occurrence by CDN’s URL.
Can this be done? How? Where?
In the meantime, I have placed the dojo files in C:\IntecDev\tomcat\webapps\dojo-1.1.1 on my PC. For instance, the path to the digit folder is C:\IntecDev\tomcat\webapps\dojo-1.1.1\dijit
Demo applications are in the C:\IntecDev\tomcat\webapps\dojo-1.1.1\RGdojo\ folder. For instance the path to hello_dojo_world.html is C:\IntecDev\tomcat\webapps\dojo-1.1.1\RGdojo\advanced_forms_made_easy\hello_dojo_world.html.
In order to run the demos directly from the files, either I have to massively edit the paths to the dojo resources (did not work) or, I have to somehow assign a value to dojoroot of (......\dojo-1.1.1). But, how do I do this? Where?
Out of desperation, I attempted a different file structure, as suggested in http://cs.calstatela.edu/wiki/index.php/Courses/CS_491ab/Winter_2008/Dong_Liu. I placed a dojoroot directory in the advanced_forms_made_easy/ directory and placed the dojo files in it, such that the path to the digit folder was advanced_forms_made_easy/dojoroot/digit/.
Alas, the demos in advanced_forms_made_easy would not load correctly because of a (dojo is not defined) error in dojo.require(dojo.parser) ..quotes omitted.
Attempts to serve the demos with Tomcat resulted in: HTTP Status 500 - No Context configured to process this request.
Moreover, there is still the issue of setting dojoroot.
I am totally lost. Can someone point me in the right direction?