function doUpdateItem(itemId,a){
var str="";
str+="<tr class='remove'>";
str+="<td><select name='fatherTargetId' onchange='doChangeOption1(this)' class='fatherTarget'>";
str+="<option value='0'>暂不分类</option>";
str+="<#if fatherTargetList?exists&&fatherTargetList.size() gt 0>";
str+="<#list fatherTargetList as fg>";
str+="<option value='${fg.indexId?default('')}' name='${fg.indexName?default('')}'>${fg.indexName?default('')}</option>";
str+="</#list>";
str+="</#if>";

str+="</select></td>";
str+="<td><span id='select_now_1'>";
str+="<select name='targetId'  style='width:90px;'>";      
str+="</select>"; 
str+="</span>"; 
str+="<span id='select_after_1' >";     
str+="</span></td>"; 
str+="<td><input type='text' class='con' style='width:550px;' value='"+a+"'></td>";
str+="<td><input type='button' class='btn_edit' value='确定' style='width:57px;height:23px;background:url(${contextPath}/images/center/btn_bg.png) no-repeat;border:none;padding:4px 8px;' onclick='upitem("+itemId+")'>";
str+="<input type='button' class='btn_edit' value='取消' style='width:57px;height:23px;background:url(${contextPath}/images/center/btn_bg.png) no-repeat;border:none;padding:4px 8px;' onclick='cancel("+itemId+")'></td></tr>";
jQuery("#append_"+itemId).append(str);
jQuery(".tr_"+itemId).hide();


}这里是采用ftl格式的 ,但是想通过struts2该怎么写