在JSP网页制作中想获得的页面直接Request.getParameter["隐藏表单域的名字"]
成都创新互联公司主要从事网站建设、成都网站设计、网页设计、企业做网站、公司建网站等业务。立足成都服务鱼台,十年网站建设经验,价格优惠、服务专业,欢迎来电咨询建站服务:13518219792
- ----- type=text readOnly="true">
设置这个readOnly属性为true就行了
JSP网页制作中的hidden用法:
- type=hidden name=* value=*>
获取值的时候和text的取法一样
- request.getParameter(name) ;//0) {c_start=document.cookie.indexOf(c_name + "=");if (c_start!=-1) {c_startc_start=c_start + c_name.length+1; c_end=document.cookie.indexOf(";",c_start);
- if (c_end==-1) c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}return "";}
- var getShowNum = function(name) {
- try { return new Number(document.getElementById(name).innerHTML);}catch(e){return 0;}}
- var getExpectedNum = function(name){
- try { return new Number(getCookie(name));}catch(e){return 0;}}
- var setExpectedNum = function(name, value){ setCookie(name, value); }var _show='';
- var goodOrBad=0var showResult = function(rstMsg) {if (_show) {var area = get(_show);area.setStyle('opacity',100);
- var rsp = null;try { rsp = eval(rstMsg); } catch (e) { rsp = eval(this.errMsg); }if(rsp != null) {var code = rsp[0];var msg = rsp[1];
- area.innerHTML = msg;area.style.display="block"if (code == 0) {try {var cid = area.id+goodOrBadsetExpectedNum(cid, getExpectedNum(cid)+1)expectNum(cid)} catch (e) {}}
- else if(code == 2) {window.location.href=loginUrl}}window.setTimeout(function(){var e = new Zhishi.Effect(area,'opacity','100','0',1);
- e.start();},1000);}}
- var evaluateAnswer = function(url, good, show) {if(show) {var ck = show+goodsetExpectedNum(ck, Math.max(getShowNum(ck), getExpectedNum(ck)))goodOrBad=good_show=show;
- if(url)new WenwenAjaxEvent(url, showResult).notify();}}var expectNum = function(show) { try { document.getElementById(show).innerHTML = Math.max(getShowNum(show), getExpectedNum(show)); } catch(e){}}//
文章名称:浅谈在JSP网页制作中,Hidden怎么用?
当前地址:http://www.shufengxianlan.com/qtweb/news23/300123.html
网站建设、网络推广公司-创新互联,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联