0

各行の ID を含むデータベースからいくつかのデータを取得しました。現在、いくつかの要素を作成しています。これらの要素の ID には、データベースから取得した ID が含まれている必要があります。

<%
    //Database Codes...I got the rset...
    while (rset.next()) {
%>
<div id="<%=rset.getString(1)%>" class="messageContainer">
</div>
<%
    }
%>

次のエラーが表示されます

Bad value " " for attribute "id" on element "div":An ID must not contain whitespace.
Syntax of id:
An ID consists of at least one character but must not contain whitespace
4

1 に答える 1