JavaScript

use out object in a method at jsp

tomato13 2011. 6. 19. 14:51

http://www.codemiles.com/jsp-examples/use-out-object-in-a-method-at-jsp-t3348.html


<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>

'JavaScript' 카테고리의 다른 글

jsp: file i/o  (0) 2011.06.19
jsp: get file list of directory  (0) 2011.06.17
jsp: get current path  (0) 2011.06.17
split  (0) 2011.06.16
j query mobile: changePage  (0) 2011.06.16