Example show you how to use the out object in jsp method .
Code:
<HTML> <HEAD> <TITLE>Use the out Object in JSP defined Method</TITLE> </HEAD>
<BODY> <H1>Use the out Object in JSP defined Method</H1> <%! void printmyname(javax.servlet.jsp.JspWriter out) throws java.io.IOException { out.println("My name is Tom"); } %>
<% printmyname(out); %> </BODY> </HTML>
_________________ M. S. Rakha, Ph.D. Queen's University Canada