Re: dojo is not defined error message in firefox console.
In your web.xml ensure you have a filter-mapping defined for the /struts/ You need to make sure that a request to the Javascript and CSS files defined in the struts jar file go thru the Struts 2 filter. That is, make sure you have something like this on your web.xml: struts2Filter /struts/* If the request to your struts 2 dojo javascript files do not go thru the Struts 2 filter, you will get 404 error when the browser attempts to retrieve those files. Rubens. -- View this message in context: http://www.nabble.com/dojo-is-not-defined-error-message-in-firefox-console.-tp16353614p19850121.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dojo is not defined error message in firefox console.
Are you deliberately mixing Dojo 0.40 with Dojo 1.x? The tag includes resources for Dojo 0.40. In addition to that you're referenced a local dojo installation that includes Digit (1.x) The "dojo undefined" message implies neither worked so there's a major error. Use FireBug to confirm that dojo.js is found. sharath karnati wrote: Hi All, I'm getting below error message for this acrion(http://localhost:7001/hibernate/events/Dojo.action). dojo is not defined dojo.require("dijit.form.Button"); Please find my progrm: TooltipDialog demo // Dojo configuration djConfig = { parseOnLoad: true, baseRelativePath: "<@s.url includeParams='none' value='/struts/dojo' includeParams='none' encode='false'/>", isDebug: true, bindEncoding: "${parameters.encoding}",debugAtAllCosts: true // not needed, but allows the Venkman debugger to work with the includes };dojo.require("dijit.Dialog"); dojo.require("dijit.form.Button"); Hello World console.log('you pressed the button'); alert("You pressed the button."); In struts.xml, I configured this program as below /pages/test1.jsp dojoroot directory is in WEB-INF/pages directory. I'm using 'struts2-core-2.0.11.jar' Please let me know what is wrong in this code and how to correct this problem. Thanks in advance. Regards, Sharath. - Looking for last minute shopping deals? Find them fast with Yahoo! Search. No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.1/1347 - Release Date: 27/03/2008 7:15 PM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dojo is not defined error message in firefox console.
Hi All, I'm getting below error message for this acrion(http://localhost:7001/hibernate/events/Dojo.action). dojo is not defined dojo.require("dijit.form.Button"); Please find my progrm: TooltipDialog demo // Dojo configuration djConfig = { parseOnLoad: true, baseRelativePath: "<@s.url includeParams='none' value='/struts/dojo' includeParams='none' encode='false'/>", isDebug: true, bindEncoding: "${parameters.encoding}", debugAtAllCosts: true // not needed, but allows the Venkman debugger to work with the includes }; dojo.require("dijit.Dialog"); dojo.require("dijit.form.Button"); Hello World console.log('you pressed the button'); alert("You pressed the button."); In struts.xml, I configured this program as below /pages/test1.jsp dojoroot directory is in WEB-INF/pages directory. I'm using 'struts2-core-2.0.11.jar' Please let me know what is wrong in this code and how to correct this problem. Thanks in advance. Regards, Sharath. - Looking for last minute shopping deals? Find them fast with Yahoo! Search.