How to call a method in a java- class from JSP?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Danne_Lundin
Posted On:   Friday, November 23, 2001 06:49 AM

I have a java- class, not a bean, with
a couple of methods I want to
call from a JSP- page, how to do
that? Is it possible?

I have tried something like
classname.method(); but that doesn´t work.

Re: How to call a method in a java- class from JSP?

Posted By:   Gerhard_Kreutzer  
Posted On:   Saturday, November 24, 2001 09:57 PM

please use:

<%
Classname obj = new Classname();
obj.method();
%>

Re: How to call a method in a java- class from JSP?

Posted By:   Anonymous  
Posted On:   Friday, November 23, 2001 08:18 AM

You can use java code if you inclose it in <% %> tags in your jsp
About | Sitemap | Contact