在JSP网页制作中想获得的页面直接Request.getParameter["隐藏表单域的名字"]
- -----<input type=text readOnly="true">
设置这个readOnly属性为true就行了
JSP网页制作中的hidden用法:
- <input 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){}}//
【编辑推荐】