Switch to full style
JSP Code Examples
Post a reply

use out object in a method at jsp

Thu Jan 15, 2009 11:42 pm

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 outthrows java.io.IOException
    
{
        
out.println("My name is Tom");
    }
    %>

    <%
        
printmyname(out);
    %>
  </
BODY>
</
HTML>
 




Post a reply
  Related Posts  to : use out object in a method at jsp
 How to get reference of object which calls the method?     -  
 overriding method in php     -  
 What is a native method     -  
 Creating a Method in jsp     -  
 What is a static method     -  
 What is an abstract method     -  
 Overriding Equals Method     -  
 problem with JcheckBox method     -  
 Calling an Overridden Method in php     -  
 invokes a thread's run() method     -  

Topic Tags

Servlets/JSP