簡體   English   中英

Struts 2和html標簽?

[英]Struts 2 and html tags?

我在Struts2中有一個表單,如下所示:

<s:form >
    <s:select list="#session.circleIdNameMap" label="Select Circle:"
        headerKey="-1" headerValue="Select Circle"
        id="selectCircleDropDown" onchange="getTspList(this.value)"></s:select>

    <select id="selectTspDropDown"></select>

    <s:radio list="#{'0':'Default','1':'Latest'}" label="Select Threshold type:"
        name="flag" id="flag"></s:radio>

    <s:submit type="button" onclick="getThresholdData();return false;" />

</s:form>

在這里,我在兩者之間使用html select標簽,由於存在對齊問題。 第二個選擇標簽出現。 使用簡單的主題,所有內容都在同一行中。

我該怎么做才能正確對齊?

HTML select標簽和option標簽一起使用。 參見示例 但是您可以使用struts select標記 ,其中選項是根據列表值自動生成的。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM