struts高手请来帮个忙!!!急急急急急急急急急!!!! ( 积分: 50 )

  • 主题发起人 主题发起人 在奔跑中积极思考
  • 开始时间 开始时间

在奔跑中积极思考

Unregistered / Unconfirmed
GUEST, unregistred user!
如下是动态加表的记录方法,我现在想用struts标签代替jsp标签,那位高手帮帮我,好急!!!!!!
functiondo
AddRow(flag)
{
var myrow=document.all("goodContent").insertRow(flag);
mycell=myrow.insertCell();
//<html:text style=&quot;input_table&quot;
size=&quot;13&quot;
property=&quot;InvoiceNo&quot;
styleId=&quot;InvoiceNo&quot;
onkeydown=&quot;next_focus(this)&quot;
value=&quot;&quot;/>
mycell.innerHTML=&quot;<input name=many&quot;+flag+&quot;
type=checkbox id=many&quot;+flag+&quot;
value=checkbox onkeydown=next_focus(this)><img src=<%=baseURL%>/images/public/del.gif alt=点击删除此商品 style=cursor:hand onClick=DelRowGood('&quot;+flag+&quot;')>&quot;;
mycell=myrow.insertCell();
mycell.innerHTML=&quot;<input name=Cmdt_NO&quot;+flag+&quot;
type=text class=un-line id=Cmdt_NO&quot;+flag+&quot;
size=12 onkeydown=next_focus(this) onChange=getCmdtID('&quot;+flag+&quot;') onDblClick=showGood('&quot;+flag+&quot;') style=cursor:hand title=双击打开商品选择窗口 onFocus=getFocus() onBlur=lostFocus()>&quot;;
mycell=myrow.insertCell();
mycell.innerHTML=&quot;<input name=id&quot;+flag+&quot;
type=hidden id=id&quot;+flag+&quot;
value=-1><div id=Cmdt_Name&quot;+flag+&quot;>&amp;nbsp;</div>&quot;;
mycell=myrow.insertCell();
mycell.innerHTML=&quot;<div id=InvOut_SeqNO&quot;+flag+&quot;>&amp;nbsp;</div>&quot;;
mycell=myrow.insertCell();
mycell.innerHTML=&quot;<div id=Cmdt_Unit&quot;+flag+&quot;>&amp;nbsp;</div>&quot;;
mycell=myrow.insertCell();
mycell.innerHTML=&quot;<input onChange=computerSum('&quot;+flag+&quot;') name=InvOut_Price&quot;+flag+&quot;
type=text class=un-line id=InvOut_Price&quot;+flag+&quot;
size=10 onkeydown=next_focus(this) onFocus=getFocus() onBlur=lostFocus()>&quot;;
mycell=myrow.insertCell();
mycell.innerHTML=&quot;<input onChange=computerSum('&quot;+flag+&quot;') name=InvOut_Mete&quot;+flag+&quot;
type=text class=un-line id=InvOut_Mete&quot;+flag+&quot;
size=10 onkeydown=next_focus(this) onFocus=getFocus() onBlur=lostFocus()>&quot;;
mycell=myrow.insertCell();
mycell.innerHTML=&quot;<div align=right><input name=InvOut_Amt&quot;+flag+&quot;
type=hidden id=InvOut_Amt&quot;+flag+&quot;></div><div align=right><div id=InvOut_AmtShow&quot;+flag+&quot;
>&amp;nbsp;</div></div>&quot;;
mycell=myrow.insertCell();
mycell.innerHTML=&quot;<div align=center><font onclick=javascript:openWriteInvOutRemark('&quot;+flag+&quot;') style=cursor:hand>点击填写<input name=InvOut_Remark&quot;+flag+&quot;
type=hidden id=InvOut_Remark&quot;+flag+&quot;></font></div>&quot;;
}
 
如下是动态加表的记录方法,我现在想用struts标签代替jsp标签,那位高手帮帮我,好急!!!!!!
functiondo
AddRow(flag)
{
var myrow=document.all(&quot;goodContent&quot;).insertRow(flag);
mycell=myrow.insertCell();
//<html:text style=&quot;input_table&quot;
size=&quot;13&quot;
property=&quot;InvoiceNo&quot;
styleId=&quot;InvoiceNo&quot;
onkeydown=&quot;next_focus(this)&quot;
value=&quot;&quot;/>
mycell.innerHTML=&quot;<input name=many&quot;+flag+&quot;
type=checkbox id=many&quot;+flag+&quot;
value=checkbox onkeydown=next_focus(this)><img src=<%=baseURL%>/images/public/del.gif alt=点击删除此商品 style=cursor:hand onClick=DelRowGood('&quot;+flag+&quot;')>&quot;;
mycell=myrow.insertCell();
mycell.innerHTML=&quot;<input name=Cmdt_NO&quot;+flag+&quot;
type=text class=un-line id=Cmdt_NO&quot;+flag+&quot;
size=12 onkeydown=next_focus(this) onChange=getCmdtID('&quot;+flag+&quot;') onDblClick=showGood('&quot;+flag+&quot;') style=cursor:hand title=双击打开商品选择窗口 onFocus=getFocus() onBlur=lostFocus()>&quot;;
mycell=myrow.insertCell();
mycell.innerHTML=&quot;<input name=id&quot;+flag+&quot;
type=hidden id=id&quot;+flag+&quot;
value=-1><div id=Cmdt_Name&quot;+flag+&quot;>&amp;nbsp;</div>&quot;;
mycell=myrow.insertCell();
mycell.innerHTML=&quot;<div id=InvOut_SeqNO&quot;+flag+&quot;>&amp;nbsp;</div>&quot;;
mycell=myrow.insertCell();
mycell.innerHTML=&quot;<div id=Cmdt_Unit&quot;+flag+&quot;>&amp;nbsp;</div>&quot;;
mycell=myrow.insertCell();
mycell.innerHTML=&quot;<input onChange=computerSum('&quot;+flag+&quot;') name=InvOut_Price&quot;+flag+&quot;
type=text class=un-line id=InvOut_Price&quot;+flag+&quot;
size=10 onkeydown=next_focus(this) onFocus=getFocus() onBlur=lostFocus()>&quot;;
mycell=myrow.insertCell();
mycell.innerHTML=&quot;<input onChange=computerSum('&quot;+flag+&quot;') name=InvOut_Mete&quot;+flag+&quot;
type=text class=un-line id=InvOut_Mete&quot;+flag+&quot;
size=10 onkeydown=next_focus(this) onFocus=getFocus() onBlur=lostFocus()>&quot;;
mycell=myrow.insertCell();
mycell.innerHTML=&quot;<div align=right><input name=InvOut_Amt&quot;+flag+&quot;
type=hidden id=InvOut_Amt&quot;+flag+&quot;></div><div align=right><div id=InvOut_AmtShow&quot;+flag+&quot;
>&amp;nbsp;</div></div>&quot;;
mycell=myrow.insertCell();
mycell.innerHTML=&quot;<div align=center><font onclick=javascript:openWriteInvOutRemark('&quot;+flag+&quot;') style=cursor:hand>点击填写<input name=InvOut_Remark&quot;+flag+&quot;
type=hidden id=InvOut_Remark&quot;+flag+&quot;></font></div>&quot;;
}
 
好乱呀 看不下去了 你这是java script写的吧
struts里有那种logic标签 迭代标签 也是做循环的
而且struts标签都是开原的!
你可以找找看看 也许照着扒就差不多!
我这没有现成的!
 
没有看懂啊!
 
乱呀 你这是struts吗 真晕
 
后退
顶部