Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
HttpSession sessionandを使用して jsp に asession.setAttribute("property_name", list_of_strings);を入力していますが、テキストを List に一度に 1 項目ずつ、新しい行に入力したいと考えています。誰か教えてくれませんか?List<String><textarea><c:forEach var="word" items="${property_name}">${word}</c:forEach>
HttpSession session
session.setAttribute("property_name", list_of_strings);
List<String>
<textarea><c:forEach var="word" items="${property_name}">${word}</c:forEach>
テキストエリアの行区切りにこの HTML 文字を試してみることができます。
あなたのコードで:
<c:forEach var="word" items="${property_name}">${word} </c:forEach>