日期:2014-05-18  浏览次数:20728 次

如何获取radio下面bean的值?谢谢高手相助?
代码如下:
<%@   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>