tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Wells" <ma...@dot.net.au>
Subject JSP Methods?
Date Mon, 24 Jul 2000 23:32:35 GMT
Hi all,

I'd like to be able to output certain segments of HTML multiple times, in
different cases.

The example below would be perfect, alas I think it's not supported by the
JSP implementation (since a declaration is handled before the HTML pass).
Correct me if I'm wrong please. :)

Example:

<%! void printHello()
    { %>
	<B>HELLO WORLD</B>
<%! } %>

<HTML>
<BODY>
	I'm saying, <%= printHello() %>
</BODY>
</HTML>


Any ideas on achieving something like this?



==============================================================
_/_/  Martin J. Wells            http://www.tasman-studios.com
_/  CTO, Tasman Studios        mailto:marty@tasman-studios.com
==============================================================


Mime
View raw message