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