How to use hidden in the making of JSP Web pages
This article will explain in detail how to use hidden in the production of JSP web pages. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
Direct Request.getParameter of the page you want to get in the JSP web page creation ["hide the name of the form field"]
-
Just set the readOnly property to true
Hidden usage in JSP web page making:
Get the value in the same way as text
Request.getParameter (name); / / 0) {clockstart= [XSS _ clean] .indexOf (c_name + "="); if (cantilevered startsof1) {c_startc_start=c_start + cemername.indexOf (";", c_start); if (c_end==-1) cendend = [XSS _ clean] .length; return unescape ([xss_clean] .substring (cantilevered startcased end));}} return " } var getShowNum = function (name) {try {return new Number (document.getElementById (name) [xss_clean]);} 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 [XSS _ clean] = 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) [xss_clean] = Math.max (getShowNum (show), getExpectedNum (show)) } catch (e) {}} / / this is the end of the article on "how to use hidden in the production of JSP web pages". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.