JSP Ǵ Markup Tag ũ װ īװ Ǿ ֽϴ.

 

1.       Comment

2.       Directive

3.       Script element

4.       Action

 

׷ ׸ Ͽ ڼ ˾ƺ .

 

JSP Comment

 

<%@ page contentType="text/html;charset=euc-kr" %>

<HTML><BODY>

<%

             int number;

             String strNumber = request.getParameter("NUMBER");

            

             try {

                           number = Integer.parseInt(strNumber);            

             } catch (NumberFormatException e){ number = -1;}

%>

<%--  ּ

           out.println(number);

--%>

<%

for(int i=0;i<10;i++){

if(number == i){

             out.println("<b>"+i + " Դϴ.</b><br>");  /* Է° ش */

} else {

             out.println(i + " Դϴ.<br>");    // ش ȣ Բ

}

}

%>

</BODY></HTML>

 

ּ

<%-- comment --%>

/* comment */

// comment

 

reference

- Web Development with Java Server Pages. by Duane K. Fields & Mark A. Kolb , ; InfoBook, Manning

- http://java.sun.com/products/jsp/tags/tags.html

-  http://myhome.shinbiro.com/~jimmy/home.htm