| <%@ page contentType="text/html; charset=UTF-8"%> <%@ taglib prefix="s" uri="/struts-tags"%> <html> <head> <title>Test</title> </head> <body> <center><br> <br> <br> <hr> <br> <br> <s:form action="test_showPost" method="post" theme="simple">     <table>        <tr>            <td><s:select               list="{'Windows','Linux','Java','.net','Pertl','PHP'}"               name="program" tooltip="select your program" /></td>        </tr>         <tr>            <td><s:select list="posts" name="post.post_name"               listKey="post_name" listValue="post_name" headerKey="0"               headerValue="请选择你的职位" required="true"></s:select></td>        </tr>        <tr>            <td><s:checkboxlist name="skills1" label="Skills 1"               tooltip="bulktree" list="{'Java', '.Net', 'RoR', 'PHP' }"               value="{'Java', '.Net' }" /></td>        </tr>        <tr>            <td><s:checkboxlist name="skills2" label="Skills 2"               tooltip="bulktree" list="#{1:'Java', 2:'.Net', 3:'RoR', 4:'PHP' }"               listKey="key" listValue="value" value="{1, 2, 3 }" /></td>        </tr>        <tr>            <td><s:doubleselect label="doubleselect test1" name="menu"               list="{'fruit','other'}" doubleName="dishes"               doubleList="top == 'fruit' ? {'apple', 'orange'} : {'monkey', 'chicken'}" />            </td>        </tr>        <tr>            <td><s:updownselect label="Favourite Countries"               list="#{'england':'England', 'america':'America', 'germany':'Germany'}"               name="prioritisedFavouriteCountries" headerKey="-1"               headerValue="--- Please Order Them Accordingly ---"               emptyOption="true" /></td>        </tr>        <tr>            <td><s:optiontransferselect               tooltip="Select Your Favourite Cartoon Characters"               label="Favourite Cartoons Characters"               name="leftSideCartoonCharacters" leftTitle="Left Title"               rightTitle="Right Title" list="{'Popeye', 'He-Man', 'Spiderman'}"               multiple="true" headerKey="headerKey"               headerValue="--- Please Select ---" emptyOption="true"               doubleList="{'Superman', 'Mickey Mouse', 'Donald Duck'}"               doubleName="rightSideCartoonCharacters"               doubleHeaderKey="doubleHeaderKey"               doubleHeaderValue="--- Please Select ---" doubleEmptyOption="true"               doubleMultiple="true" /></td>        </tr>        <tr>            <td><s:submit></s:submit></td>        </tr>     </table> </s:form></center> </body> </html> |