书签 分享 收藏 举报 版权申诉 / 31

类型JavaEE教案 33.docx

  • 文档编号:17545905
  • 上传时间:2023-07-26
  • 格式:DOCX
  • 页数:31
  • 大小:291.63KB

商品名称

textfieldname="merchandise.name"cssClass="TextInput"id="name"onFocus="show_message('msg_name','2','请输入商品名称');"onBlur="out_chkMaxLength('name','msg_name','名称小于10位且不能为空!

','10')">

textfield>

show"id="msg_name"class="box_div_right"> 

商品价格(元)

textfieldname="merchandise.price"cssClass="TextInput"id="amount"onFocus="show_message('msg_amount','2','请输入商品价格')"onBlur="out_amount()">

textfield>

show"id="msg_amount"class="box_div_right"> 

 

 

30px;margin-right:

0px">

submitvalue="保存"cssClass="BtnAction"method="saveMerchandise">

submit>

 

form>

商品档案修改页面updateMerchandise.jsp页面的关键代码如下:

"/>

商品档案

vartextAmount;

functioninit(){

textAmount=document.getElementById("amount");

}

functionout_amount(){

varchk=false;

if((!

isNaN(textAmount.value))&&textAmount.value>0&&textAmount.value<999){

show_message("msg_amount","1",'输入正确!

');

chk=true;

}else{

show_message('msg_amount','0','价格必须输入大于零小于999的数字形式');

}

returnchk;

}

functionformSubmit(){

varchk=false;

varchkRetName=out_chkMaxLength('name','msg_name','名称小于10位且不能为空!

','10');

varchkRetAmount=out_amount();

if(chkRetName&&chkRetAmount){

chk=true;

}

returnchk;

}

window.onload=init;

formaction="merchandiseAction"method="post"theme="simple"onsubmit="returnformSubmit();">

hiddenname="merchandise.id">

hidden>

hiddenname="merchandise.code">

hidden>

10pt;">档案管理->商品档案->新增

商品编号

textfieldname="merchandise.code"cssClass="TextInput"disabled="true">

textfield>

商品名称

textfieldname="merchandise.name"cssClass="TextInput"id="name"onFocus="show_message('msg_name','2','请输入名称');"onBlur="out_chkMaxLength('name','msg_name','名称小于10位且不能为空!

',10)">

textfield>

show"id="msg_name"class="box_div_right"> 

商品价格(元)

textfieldname="merchandise.price"cssClass="TextInput"id="amount"onFocus="show_message('msg_amount','2','请输入商品价格')"onBlur="out_amount()">

textfield>

show"id="msg_amount"class="box_div_right"> 

 

 

30px;margin-right:

0px">

submitvalue="保存"method="updateMerchandise"cssClass="BtnAction">

submit>

 

form>

商品档案查询页面merchandise.jsp页面的关键代码如下:

formaction="merchandiseAction"method="post"theme="simple">

商品编号

textfieldname="merchandise.code"cssClass="TextInput">

textfield>

商品名称

textfieldname="merchandise.name"cssClass="TextInput">

textfield>

举报
举报
版权申诉
版权申诉
word格式文档无特别注明外均可编辑修改;预览文档经过压缩,下载后原文更清晰! 立即下载
配套讲稿:

如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。

特殊限制:

部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。

关 键  词:
JavaEE教案 33 JavaEE 教案
提示  冰点文库所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:JavaEE教案 33.docx
链接地址:https://www.bingdoc.com/p-17545905.html
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2


收起
展开