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]