0
첫 번째 텍스트와 두 번째 텍스트의 두 개의 텍스트 상자가 있습니다. 각각은 크기 선택을위한 상자를 드롭 다운 (그래서 그들은 서로 다른 크기 일 수 있습니다). 지금은 다른 크기를 선택할 수 있으며 정상적으로 작동합니다. 오전 데 문제는이 같은 두 개의 서로 다른 라인에 표시되어 있습니다 :jsp를 사용하여 하나의 (동일한) 줄에 h1 태그를 표시하는 방법
first text
second text
하지만 난 그들이 서로 옆에 표시 할.
<c:choose>
<c:when test="${! (empty (properties['first']) && empty (properties['second']))}">
<c:choose>
<c:when test="${properties['type'] == 'styled'}">
<h1 class="aaaa">
<span>first text</span>
</h1>
</c:when>
<c:otherwise>
<h2 class="bbb">
<span class="putColor">first text</span>
</h2>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${properties['type1'] == 'styled'}">
<h1 class="aaaa">
<span class="putColor">second text</span>
</h1>
</c:when>
<c:otherwise>
<h2 class="bbb">
<span class="putColor">second text</span>
</h2>
</c:otherwise>
</c:choose>
</c:when>
<c:otherwise>
<div class="hhhh">
</div>
</c:otherwise>
</c:choose>
제목의 질문은 실제로 묻는 것과 모순됩니다. 구체적인 문제에 관해서는 여러 개 있습니다. h1 태그가 서로 다음에 의미 적으로 잘못되었습니다. 궁극적으로 두 텍스트 모두 하나만 사용해야합니다. 그러나 코드가이 접근법이 정확히 선택된 이유와 정확하게 기능 요구 사항이 무엇인지 이해하기에 충분할만큼 자체 문서화가되지 않으므로 대신 하나의 h1 만 사용하는 방법에 대한 답을 얻는 것은 어렵습니다. – BalusC