Hi Kartik,

Remove the attribute value from your s:select tag, and in your action, preset the value of your attribute actionStatus (on your Action class) to "OPEN" or "CLOSED". At least, it is working in my case. Let us know if it is not working for you that way, and I will put together a simple example showcasing this.

Denis

Le 2010-04-23 20:37, Kartik Kumar a écrit :
I have some thing like this

<s:iterator value="actionItems">
         <tr>
             <td><s:property value="creatorName" /></td>
             <td><s:property value="assignedTo" /></td>
             <td><s:property value="creationDate" /></td>
             <td><s:property value="dueTo" /></td>
             <td><s:property value="externalItemNumber" /></td>
             <td><s:property value="description" /></td>
             <td><s:property value="currentStatus" /></td>
             <td width="100"><s:property value="status"/>
            *<s:select name="actionStatus" value = "status'>"
list="#{'OPEN':'OPEN', 'CLOSED':'CLOSED'}" headerKey="" headerValue="Change
Status"/>*
             <a href = "<s:url action = 'updateActionStatus.action'>
                    <s:param name = 'id' value =
'id'/></s:url>">Change</a></td>

         </tr>
     </s:iterator>

But I don't see the preselected value,

Thanks,

Kartik

On Fri, Apr 23, 2010 at 5:11 PM, Kartik Kumar<krishnan.1...@gmail.com>wrote:

Hi Struts gurus,

I am have an object level attribute that is selected from the s:select tag.

   <s:select key="search.criterion" name="searchCriterion"
       list="#{'': 'Select One',
'bean.attributeValue':'bean.attributeValue', 'abc':'abc'}"
       required="true" onchange="showSearchCriterionField()" />

If I want to set 'abc' to selected, then how do do that ? Any advice would
be welcome.

Thanks,

Kartik



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to