입력받는 곳은 이렇게 만들었는데 categoryCode만 저장이 안되는데 이미지처럼 뭔가를 더 써줘야 하나요? dropbox검색했을 때 별 다른 내용없어서 그냥 받게 만들었습니다....
<c:forEach items="${list2}" var="goods">
<tr>
<td>${goods.rnum}</td>
<td>${goods.categoryCode}</td>
<td><img src="${pageContext.request.contextPath}/${goods.image}"/></td>
<td><a href='detail?rnum=${goods.rnum}'>${goods.goodsName}</a></td>
<td>${goods.summary}</td>
<td>${goods.deliveryCharge}</td>
<td>${goods.goalNum}</td>
<td>${goods.sellStart}</td>
<td>${goods.sellEnd}</td>
</tr>
</c:forEach>
mysql은 이렇게 만들었습니다...
<resultMap type="Goods" id="goodsResult">
<result property="rnum" column="rnum"/>
<result property="dealCode" column="DEALCODE"/>
<result property="categoryCode" column="categoryCode"/>
<result property="goodsName" column="goodsname"/>
<result property="price" column="PRICE"/>
<result property="deliveryCharge" column="DELIVERYCHARGE"/>
<result property="sellStart" column="SELLSTART"/>
<result property="sellEnd" column="SELLEND"/>
<result property="goalNum" column="GOALNUM"/>
<result property="content" column="CONTENT"/>
<result property="summary" column="SUMMARY"/>
<result property="sellNum" column="SELLNUM"/>
<result property="successTf" column="SUCCESSTF"/>
<result property="id" column="ID"/>
<result property="image" column="IMAGE"/>
</resultMap>
<insert id="insertGoods" parameterType="GOODS">
INSERT into goods values (#{rnum}, #{dealCode}, #{categoryCode}, #{goodsName}, #{price}, ${deliveryCharge}, NOW(), #{sellEnd}, #{goalNum}, #{content}, #{summary}, #{sellNum}, #{successTf}, #{id}, #{image});
</insert>