Tutorials4u.net Forum
Define a method in a JSP page - Printable Version

+- Tutorials4u.net Forum (http://www.tutorials4u.net/forum)
+-- Forum: Discussion Forum (/forumdisplay.php?fid=1)
+--- Forum: JSP (/forumdisplay.php?fid=3)
+--- Thread: Define a method in a JSP page (/showthread.php?tid=32)


Define a method in a JSP page - tutorials4u - 12-15-2010 01:32 AM

<%!
public String sayHello(){
return "Hello";
}
%>


<%= sayHello() %>