Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 48444 invoked from network); 11 Sep 2007 01:33:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Sep 2007 01:33:14 -0000 Received: (qmail 11163 invoked by uid 500); 11 Sep 2007 01:32:56 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 11143 invoked by uid 500); 11 Sep 2007 01:32:56 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 11132 invoked by uid 99); 11 Sep 2007 01:32:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 18:32:56 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 24.24.2.56 is neither permitted nor denied by domain of dns4@cornell.edu) Received: from [24.24.2.56] (HELO ms-smtp-02.nyroc.rr.com) (24.24.2.56) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2007 01:34:26 +0000 Received: from [192.168.5.102] (cpe-24-59-111-127.twcny.res.rr.com [24.59.111.127]) by ms-smtp-02.nyroc.rr.com (8.13.6/8.13.6) with ESMTP id l8B1WVlD021164 for ; Mon, 10 Sep 2007 21:32:31 -0400 (EDT) Message-ID: <46E5F02E.80304@cornell.edu> Date: Mon, 10 Sep 2007 21:32:30 -0400 From: David Smith User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: tc & xmlhttprequest References: <393034.6815.qm@web60122.mail.yahoo.com> In-Reply-To: <393034.6815.qm@web60122.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Checked: Checked by ClamAV on apache.org No comment on the whole bean construct other than to say that's too complicated for my tastes. My personal preference on the whole resources inside of WEB-INF front is to just place the resources outside of WEB-INF. Then configure a security constraint or write a filter on the request to handle access control. Just seems easier to me. --David Chris Pat wrote: > Hi David > I did it partially this way, and it works. My objects in the js file are executing. > > http://:/ > > decarta javascript api example > > > However I still get the "Permission denied to call XMLHttpRequest.open... I thought by putting a jsp:forward outside my WEB-INF and calling it internally from localhost I would avoid that and worry about how to access it from Internet; now I first have to get around this security issue on localhost so I can test and ass-ume it will also allow access from browsers externally. > > > David Smith wrote: > > >> As for that last bit, I have found >> that you can specify the path as /FolderInWebApp/Script/myScript.js >> > You still need either the context path or make it relative to the page's > URL or the client won't be able to resolve it. This doesn't work like > the jsp internals that are aware of the context path. > > --David > > Nathan Bahr wrote: > >> hmm what exactly do you need ajax for? From my recollection, ajax is >> simply a method of making mini-requests to the server so the interaction >> with your webapp is a bit more fluid. As for that last bit, I have found >> that you can specify the path as /FolderInWebApp/Script/myScript.js >> instead of using the fully qualified name. When you start the path with >> '/' it looks in the base webapp directory. Lemme know if this helps any. >> >> >> >>>>> cpanon@yahoo.com 09/10/07 3:23 PM >>> >>>>> >>>>> >> Hello >> Any tips on serving a ajax page with tomcat? I am now calling the page >> with a jsp:forward outside of the web-inf. Do I also have to fully unc >> path to the *.js files, like >> src=localhost:8080/context/intPages/myScripts.js ? >> >> >> >> --------------------------------------------------------------------- >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> >> >> > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org