Passing the out Object to a Method
<HTML> <HEAD> <TITLE>Passing the out Object to a Method</TITLE> </HEAD> <BODY> <H1>Passing the out Object to a Method</H1> <%! void printem(javax.servlet.jsp.JspWriter out) throws java.io.IOException { out.println("Hello from JSP!"); } %> <% printem(out); %> </BODY> </HTML>
1. | Define function | ||
2. | Using Recursion | ||
3. | Declaring Multiple Methods | ||
4. | Creating a Method | ||
5. | Passing Arrays to Methods |