1)List<String> parameterList;

 

<td style="width: 155px;">
           Param:<select  name="parameter" id="parameter" style="width:110px;" value="${parameter}"> 
                            <s:iterator value="#request.parameterList" id='char' status='st'> 
                                    <option value="<s:property/>" <s:if test="parameter==#char"> selected </s:if>>

                                    <s:property/></option> 
                                </s:iterator> 
                            </select>

</td>

 

2) <s:if>标签,与字符串的比较,外层用单引号,字符串用双引号

<td id="ShiftDiv">
                   &nbsp  &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp Shift:
                    <select  name="shift"  id="shift" size="1" style='width:100px;'> 
                        <option value="All" <s:if test='shift=="All"'> selected </s:if>>All</option> 
                        <option value="A" <s:if test='shift=="A"'> selected </s:if>>A</option>
                        <option value="B" <s:if test='shift=="B"'> selected </s:if>>B</option>  
                    </select>
                </td>