2013-04-02 86 views
0

我有一個列表與對象和jsp表填充使用這些對象。我想爲該表添加一個單選按鈕列,當我單擊一個單選按鈕時,我想將該對象加載到相關文本字段中以進行更新。我怎樣才能做到這一點?struts 2 jsp單選按鈕動作

這是針對我的JSP代碼:

<table class="tldFromContent" border="1" width="800px"> 

    <tr class="tblMenuColorMsg" height="25px"> 
     <td>Select</td> 
     <td><strong>Description</strong></td> 
    </tr> 
    <% 
     int j = 0; 
    %> 
    <s:iterator value="pcinitiladataList"> 
     <tr > 
      <td><input type="radio" id="selectedCar1" name="selectedCar" value="${decrp}" >Edit</td> 
       <td align="right"><s:property 
         value="decrp" /></td>             
     </tr> 
     <%j++;%> 
    </s:iterator> 
</table> 

我想要做的是,當我點擊表中的單選按鈕,在原始的相關數據應在加載到文本字段和日期時間選擇器...

回答