상세 컨텐츠

본문 제목

jsp 내가 만든 tag를 이용해 구구단 뽑기

관리X 과거글

by 까먹기전에 2015. 3. 31. 11:13

본문

반응형

<%@ tag language="java" pageEncoding="EUC-KR"%>

<%@ attribute name="value" required="true" %>

<%@ attribute name="color" required="true" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>




<c:forEach var="a" begin="1" end="9">

${value} x ${a} = ${value*a}

<br>

</c:forEach>

=========================================================

<%@ page language="java" contentType="text/html; charset=EUC-KR"

pageEncoding="EUC-KR"%>

<%@ taglib prefix="myTags" tagdir="/WEB-INF/tags" %> 


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


<myTags:gugudan value="5" color="orange"/>

<hr>

<myTags:gugudan value="7" color="skyblue"/>



</body>

</html>


=========================================================




관련글 더보기