Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 67269 invoked from network); 3 Sep 2007 14:54:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Sep 2007 14:54:41 -0000 Received: (qmail 22795 invoked by uid 500); 3 Sep 2007 14:54:27 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 22752 invoked by uid 500); 3 Sep 2007 14:54:27 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 22741 invoked by uid 99); 3 Sep 2007 14:54:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2007 07:54:27 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [128.2.10.85] (HELO smtp.andrew.cmu.edu) (128.2.10.85) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2007 14:54:19 +0000 Received: from webmail.andrew.cmu.edu (WEBMAIL7.andrew.cmu.edu [128.2.10.149]) (user=smwamufi mech=GSSAPI (56 bits)) by smtp.andrew.cmu.edu (8.13.8/8.13.8) with ESMTP id l83ErwQQ011290 for ; Mon, 3 Sep 2007 10:53:58 -0400 Received: from 71.199.114.83 (SquirrelMail authenticated user smwamufi@ANDREW.CMU.EDU); by webmail.andrew.cmu.edu with HTTP; Mon, 3 Sep 2007 10:53:58 -0400 (EDT) Message-ID: <62803.71.199.114.83.1188831238.squirrel@71.199.114.83> In-Reply-To: <46DC1B73.1010009@omnytex.com> References: <63594.71.199.114.83.1188824855.squirrel@71.199.114.83> <000601c7ee2f$98833e00$c989ba00$@cmu.edu> <61960.71.199.114.83.1188829423.squirrel@71.199.114.83> <46DC1B73.1010009@omnytex.com> Date: Mon, 3 Sep 2007 10:53:58 -0400 (EDT) Subject: Re: Running Dojo on a struts project From: "Session A Mwamufiya" To: "Struts Users Mailing List" User-Agent: SquirrelMail/1.5.1 [CVS] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Scanned-By: MIMEDefang 2.60 on 128.2.10.85 X-Virus-Checked: Checked by ClamAV on apache.org Thanks for the input Frank. I found out my mistake, I didn't have the scripts in the header section, they were in the body, that's why the djConfig wasn't going through properly. Thanks, Session > It *looks* like your using a Dojo profile that doesn't include the pieces > you need, and Dojo is going off and trying to import them and not finding > them. Have a look here: > > http://www.nabble.com/djConfig-params-t2109960.html > > You should set djConfig.baseScriptUri first, see if that resolves your > problem, then think about the profile your using. > > Frank > > -- Frank W. Zammetti Founder and Chief Software Architect Omnytex > Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: > fzammetti@hotmail.com Author of "Practical Ajax Projects With Java > Technology" (2006, Apress, ISBN 1-59059-695-1) and "JavaScript, DOM > Scripting and Ajax Projects" (2007, Apress, ISBN 1-59059-816-4) Java Web > Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you > don't have to reinvent it! > > Session A Mwamufiya wrote: >> Who has experience using Dojo? Please help me get it setup. I added >> the dojo.js file from the 0.9.0 release (I think it's the latest) to my >> webcontent folder in an eclipse WAP project, but firebug keeps giving >> me the same error "djConfig.baseScriptUri has no properties >> getBaseScriptUri()dojo.js (line 155)" >> >> Please help, >> >> Thanks, Session >> >> >>> To follow up on this; I used firebug to try to figure out what was >>> going on, and this is the error message I get in the console: >>> >>> djConfig.baseScriptUri has no properties getBaseScriptUri()dojo.js >>> (line 155) loadPath("src/lang/__package__.js", "dojo.lang", >>> undefined)dojo.js (line 187) loadModule("dojo.lang", undefined, >>> undefined)dojo.js (line 341) require("dojo.lang.*")dojo.js (line 419) >>> [Break on this error] if(djConfig.baseScriptUri.length){ >>> >>> There seems to be an error in the dojo.js file. I'm using version >>> 0.4.3 with ajax. Can someone send me the link to a working version of >>> the file? >>> >>> Thanks, >>> >>> Session A. Mwamufiya Carnegie Mellon University MBA | Tepper School >>> of Business MSE (software eng.) | School of Computer Science T: (412) >>> 508-5455 | semwamufiya@cmu.edu >>> >>> -----Original Message----- From: Session A Mwamufiya >>> [mailto:smwamufi@andrew.cmu.edu] Sent: Monday, September 03, 2007 >>> 9:08 AM To: user@struts.apache.org Subject: Running Dojo on a struts >>> project >>> >>> Hi, >>> >>> I'm attempting to follow a Dojo tree widget tutorial, >>> http://willcode4beer.com/ware.jsp?set=dojoTreeWidget, where Dojo is >>> used to define a tree. Unfortunately nothing comes up on the page, >>> even though the page source shows the tree definition. >>> >>> The tree page is set as the result page for a dummy action (which >>> executes), but that's the only connection I have between Dojo and >>> struts. Is there anything in particular I need to do to get Dojo to >>> run within a struts app? >>> >>> Thanks, Session >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For >>> additional commands, e-mail: user-help@struts.apache.org >>> >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For >>> additional commands, e-mail: user-help@struts.apache.org >>> >>> >>> >> >> >> --------------------------------------------------------------------- To >> unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional >> commands, e-mail: user-help@struts.apache.org >> >> >> >> >> > > > > --------------------------------------------------------------------- To > unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional > commands, e-mail: user-help@struts.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org