Re: Scripts
try: %! public String test(){ return test; } % Note the exclamation point in the tag.. On Wed, 2004-12-22 at 14:05, 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Scripts
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Scripts
Thanks I got that working. Another thing though. %@ include file=file.jsp% %! public String test() { testClass temp = new testClass(); } Test(); % This results in an error about testClass being an invalid type. Any idea how I can use the testClass that is defined in file.jsp within this test function? Thank you Charles Killmer -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 22, 2004 1:10 PM To: Tomcat Users List Subject: Re: Scripts try: %! public String test(){ return test; } % Note the exclamation point in the tag.. On Wed, 2004-12-22 at 14:05, 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Scripts
Is 'testClass' a valid class? Is it accessible to your JSPs? http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html Have you imported it to the JSP? %@ page import=package.class % If you're new to Java/JSP, you'll probably save yourself a lot of headaches by finding either a JSP/Servlet book or an online tutorial. There are hundreds out there (GIYF). Also, your naming/capitalization convention hints that you are new to Java as well. Like with JSP/Servlets, there are lots of books and tutorials on Java available. On the surface, JSPs look a lot like PHP or ASP pages but there are some critical concepts (threading being on the top of the list) that you should understand before writing any production code with them. Best of Luck, -Ben On Wed, 2004-12-22 at 15:14, Charles P. Killmer wrote: Thanks I got that working. Another thing though. %@ include file=file.jsp% %! public String test() { testClass temp = new testClass(); } Test(); % This results in an error about testClass being an invalid type. Any idea how I can use the testClass that is defined in file.jsp within this test function? Thank you Charles Killmer -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 22, 2004 1:10 PM To: Tomcat Users List Subject: Re: Scripts try: %! public String test(){ return test; } % Note the exclamation point in the tag.. On Wed, 2004-12-22 at 14:05, 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: scripts for Workers
If you are talking about workers on the same machine, simply hit each startup.sh et al in turn. If you are talking about workers on many different machines : (On a central PC) Do an array of server IP's with a common username (i.e. tomcat) - (and tomcat directory - i.e. /usr/local/tomcat). The workers must have the ssh key of the central PC in each known_hosts file. Simply iterate round your workers array (for each IP) and use ssh to execure a remote command, $IP $TOMCAT_HOME/bin/startup.sh Pete. Boulay Arnaud wrote: Hi ! I'm looking for scripts that work like startup.sh and shutdown.sh but with multi tomcat targets (workers). those scripts are for linux. Thanks, Arnaud - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]