info.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!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=UTF-8">
<title>INFO</title>
</head>
<body>
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td>제품 번호</td><td>XXXX</td>
</tr>
<tr>
<td>가격</td><td>10,000원</td>
</tr>
</table>

<jsp:include page="infoSub.jsp" flush="false">
	<jsp:param name="type" value="A" />
</jsp:include>
</body>
</html>


infoSub.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%
    String type= request.getParameter("type");
    if(type != null){
    %>
<br>
<table width="100%" border="1" cellpadding="0" cellspacing="0" >
<tr>
	<td>타입</td>
	<td><b><%= type %></b></td>
	<tr>
	<td>특징</td>
	<td>
	<% if(type.equals("A")){ %>
	강한 내구성.
	<% } else if(type.equals("B")){ %>
	뛰어난 대처 능력
	<%} %>
	</td>
	</tr>
</table>
<% } %>



+ Recent posts