## main.jsp
<h2>메인페이지</h2>
<form>
물건명:<input type="text" name="name"/>
가격:<input type="text" name="price"/>
<input type="submit" value="구매"/>
</form>
<div style="border: 1px solid coral">
<%@include file="a08_sub.jsp" %>
<h2><%=name %></h2>
<h2><%=price %></h2>
</div>
##a08_sub.jsp
<%
String name = request.getParameter("name"); if(name=="") name=" ";
String price = request.getParameter("price"); if(price=="") price="0";
%>