简体   繁体   中英

Struts 2 and html tags?

I have a form in Struts2 as follows:

<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>

Here i am using html select tag in between, due to which there is an alignment issue. The second select tag comes up. Using simple theme everything comes in a single line.

What should I do to make alignment right??

The HTML select tag used with the option tag together. See the example . But you could use struts select tag where the options are generated automatically from the list values.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM