代码如下:
<%@ page language="java" pageEncoding="gbk"
contentType="text/html; charset=gbk "%>
<%-- 共通 --%>
<%@ include file="../inc/incTop.inc"%>
<html:html>
<head>
<Script language="JavaScript">
function doSave(radioGoodsBean){
  ????
//怎么获取但选择radio时,得到选择了的下面bean值?  如果用:    
  // <td><input  type="radio" name="radioGoodsBean" value="1"/></td>
  //<td><input  type="text" name="strGoods_NO" value="<bean:write name="GoodsBean" property="strGoods_NO" />"/></td>
  //<td><input  type="text" name="strGoods_Name" value="<bean:write name="GoodsBean" property="strGoods_Name" />"/></td>
  //<td><input  type="text" name="strGoods_Unit" value="<bean:write name="GoodsBean" property="strGoods_Unit" />"/></td>
  //<td><input  type="text" name="strGoods_Price" value="<bean:write name="GoodsBean" property="strGoods_Price" />"/></td>
 //代替程序中radio及以下语句又怎么获取选择了的下面的值呢???求组!
 }//var goods="<%=request.getAttribute("GoodsBean")%>";
//window.alert(goods);
//window.document.form[1].submit();//if(window.document.forms[0].elements()
//window.opener.document.forms[i].onsubmit;
//var i=request.getParameter("i");
//request.setAttribute("GoodsBean",GoodsBean);}
</Script>
<title><bean:message key="nextpage.index.title"/></title>
</head>
<body>
<html:form action="/SearchGoodsAction" >
<bean:message key="page.goods.no"/> <html:text property="strGoods_NO"/>
&nbsp&nbsp<bean:message key="page.goods.title"/><html:text property="strGoods_Name"/>
<br><html:submit   property="submit"   value="searchGoods"/>  
 </html:form> 
  <html:form action="/GoodsAction">
<table   width=750  border=1 cellspacing="0"   cellpadding=0  style="font-size:   12px">   
<tr><td><bean:message key="page.goods.select"/></td>   
    <td><bean:message key="page.goods.no"/></td>   
    <td><bean:message key="page.goods.title"/></td>
    <td><bean:message key="page.goods.untile"/></td>
    <td><bean:message key="page.goods.price"/></td></tr>   
  
  <logic:present name="GoodsBean" scope="request">
  <logic:iterate name="GoodsBean" id="GoodsBean" type="com.order.formbean.GoodsForm">
 
  <tr>
  <td><input  type="radio" name="radioGoodsBean" value="<bean:write name="GoodsBean" property="strGoods_NO"/>"/></td>
  <td><bean:write name="GoodsBean" property="strGoods_NO" /></td>
  <td><bean:write name="GoodsBean" property="strGoods_Name"/></td>
  <td><bean:write name="GoodsBean" property="strGoods_Unit"/></td>
  <td><bean:write name="GoodsBean" property="strGoods_Price"/></td>
  </tr>
  
    </logic:iterate>
    </logic:present>
  </table> 
</html:form>
 
<html:button property="button" value="save" onclick="return doSave('radioGoodsBean');" title="save!"/><html:button property="button" value="cancle" onclick="window.close();" title="end!"/> 
</body>
</html:html>