Passing the out Object to a Method : Method « JSP « Java






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>


           
       








Related examples in the same category

1.Define function
2.Using Recursion
3.Declaring Multiple Methods
4.Creating a Method
5.Passing Arrays to Methods