tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wade Chandler <wchand...@redesetgrow.com>
Subject Re: Scripts
Date Wed, 22 Dec 2004 20:08:16 GMT
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


Mime
View raw message