Return-Path: Delivered-To: apmail-jakarta-velocity-user-archive@apache.org Received: (qmail 98755 invoked from network); 10 Jul 2002 08:24:45 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 10 Jul 2002 08:24:45 -0000 Received: (qmail 15419 invoked by uid 97); 10 Jul 2002 08:25:04 -0000 Delivered-To: qmlist-jakarta-archive-velocity-user@jakarta.apache.org Received: (qmail 15402 invoked by uid 97); 10 Jul 2002 08:25:03 -0000 Mailing-List: contact velocity-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Velocity Users List" Reply-To: "Velocity Users List" Delivered-To: mailing list velocity-user@jakarta.apache.org Received: (qmail 15390 invoked by uid 98); 10 Jul 2002 08:25:02 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <3D2B6283.3010601@teamup.ch> Date: Wed, 10 Jul 2002 00:24:03 +0200 From: Gabriel Sidler User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: Velocity Users List Subject: Re: VELTOOLS - App scope items? References: <002901c227e2$d7592130$6801a8c0@amer.cisco.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Tim Colson wrote: >>I've got one follow-on though... I tried all sorts of attemps >>to just grab something from "application" - ex. >>$Application.getRealPath() $application.RealPath, etc. >>without success. >>Should this work? >>Tim >> > No you dimwit.. it shouldn't! getRealPath() doesn't exist, but > getRealPath(String foo) does. > > Ugh. I'm putting down the mouse and backing away from the keyboard. ;-) > > ..uh well... I can't help but make one last attempt at saving some of my > dignity and trying to ask a non-dimwitted question -> > > How would I disallow an HTML designer from invoking any public method > they please on that $application variable? (ex. > $application.removeAttribute("it_would_be_bad_to_remove_me") > > Geez, I hope that is halfway intelligent. ;-) That sounds like a very reasonable question :-) Currently, to achieve above you would have to modify class org.apache.velocity.tools.view.context.ChainedContext. If hiding request, session or application attributes from the Velocity context is a common need, we could make this configurable. Gabe > > Cheers, > Tim > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > . > > -- -- Gabriel Sidler Software Engineer, Eivycom GmbH, Zurich, Switzerland -- To unsubscribe, e-mail: For additional commands, e-mail: