<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!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>商品情報更新</title>
</head>
<body><center>
<h1>商品情報更新</h1>
<form action="FashionUpdateServlet" method="post">
<input type="hidden" name="id" value='<c:out value="${fashion.id}" />'>
カテゴリー<br> <select name="category">
<c:if test="${fashion.category == 'トップス'}">
<option value="トップス" selected>トップス</option>
</c:if>
<c:if test="${fashion.category != 'トップス'}">
<option value="トップス">トップス</option>
</c:if>
<c:if test="${fashion.category == 'アウター'}">
<option value="アウター" selected>アウター</option>
</c:if>
<c:if test="${fashion.category != 'アウター'}">
<option value="アウター">アウター</option>
</c:if>
<c:if test="${fashion.category == 'ボトムス'}">
<option value="ボトムス" selected>ボトムス</option>
</c:if>
<c:if test="${fashion.category != 'ボトムス'}">
<option value="ボトムス">ボトムス</option>
</c:if>
</select><br>
品名<br><input type="text" name="name"
value='<c:out value="${fashion.name}" />'><br>
価格<br><input type="text" name="price" value='<c:out value="${fashion.price}" />'><br>
<input type="submit" value="更新"><br>
</form>
<a href="<%=request.getContextPath()%>/FashionDetailServlet?category=${fashion.category }">${fashion.category }商品一覧戻る</a>
<br>
</center>
</body>
</html>
https://swtogel.site
https://gettomanbaga.online/