2
喜propely在使用DIV我在jsp頁面是列表我是itreting Struts標籤,當我嘗試ctreate潛水每個itration它不工作的罰款如何在Struts 2的
這裏是我的代碼:
<div style="height:300px;width:700px;border:solid 2px white;overflow:scroll;overflow-x:hidden;overflow-y:scroll;">
<s:if test="#request.questions !=null && #request.questions.size()>0">
<s:set var="id" value="-1" />
<s:iterator value="#request.questions" status="index" var="ques">
<s:if test="%{#id != surveyId}">
name <s:property value="surveyId"/>
<s:set var="id" value="surveyId"/>
</s:if>
<s:div " id="questionNumber<s:property value='sortOrder'/>">
<span class="questionCode"><s:property value="questioncode"/>. </span>
<span class="questionText"><s:property value="questionname"/> </span>
<s:div class="answersBlock">
<s:div><label class="answerLabel">Ans. <s:property value="answername"/> </label></s:div>
</s:div>
</s:div>
</s:iterator>
</s:if>
<s:else>
No Survey Taken Yet.
</s:else></p>
</div>
這裏我在下面fromat歌廳日期像
id 281
q1: question
ans: -----
id: 282
q1:question
ans: ---
q2: question
ans:----
q3:question
and:----
現在我想在這裏我想創建一個ID 281,282 2次seprate潛水,並把ID 281的內容在不同勢格和id 282一世ñ不同勢格
我正在動態地歌廳數據,因此它可能是更多的則2ids等IDS克里特股利和和一個ID的基地可以有多個問題答案
感謝
只需使用普通的DIV-S。 –
的Struts DIV是基於Ajax的,並建議使用jQuery插件 –
'
「>'是在多個方面無意義的,最關鍵的感你不能嵌套JSP標記這樣。 –