<%@ page language="java" contentType="text/html; charset=EUC-KR"
pageEncoding="EUC-KR"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<body>
<!-- 선언부 -->
<%!
int num = 1;
%>
<!-- 스크립트릿 -->
<%
String blog = "Jinius man";
System.out.println(blog+" 환영합니다.");
%>
<b>
<!-- 표현식 -->
<%=
blog
%>
</b> 환영합니다.
</body>
</html>
result)
댓글 없음:
댓글 쓰기