Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 3240 invoked from network); 22 Dec 2004 20:09:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 22 Dec 2004 20:09:54 -0000 Received: (qmail 29629 invoked by uid 500); 22 Dec 2004 20:08:34 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 29582 invoked by uid 500); 22 Dec 2004 20:08:34 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 29554 invoked by uid 99); 22 Dec 2004 20:08:33 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from h-64-105-195-133.atlngahp.covad.net (HELO redesetgrow.com) (64.105.195.133) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 22 Dec 2004 12:08:29 -0800 Received: from (10.17.18.70 [10.17.18.70]) by MailEnable Inbound Mail Agent with ESMTP; Wed, 22 Dec 2004 15:15:19 -0500 Message-ID: <41C9D430.2090903@redesetgrow.com> Date: Wed, 22 Dec 2004 15:08:16 -0500 From: Wade Chandler Organization: Red-e Set Grow User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Scripts References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Charles P. Killmer wrote: > I am trying to write a function in a script file and having a lot of > trouble. > > <% > function String test() { > return "test"; > } > out.print(test()); > %> > > Is there a way to do this without using a class? Also along these lines > would something like this be possible. > > <% > function void test() { > %> > This should just be echoed to the screen. > <% > } > test(); > %> > > Thanks for any help > Charles Killmer > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > Don't confuse java/jsp with javascript. Unless you have a special container that supports java script in the language parameter for the page context..... Wade --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org