Based on Struts to the framework --- involving secondary request -

xiaoxiao2021-03-06  43

The principle is this: Click the URL, link to the frame (one request), and configure MonitorForwardAction.do in the framework, it will go to make a request (this is the second request), so after a request, the east and west in Request Disappearing, so the MonitorForwardAction does not reach the attribute from the beginning, at this time, if you want to click the pass value, you should set it into the session, but remember to take the value after it takes it REMOVE

The second point to pay attention, is similar to this: In a frame page similar to the following, click on a link above Frame, generate a request, want to make it displayed on the page below, should do this: The following page is the page of the above-mentioned frame page OperationList Frame has arrived by the second request, which is: "Target =" infoDetail "> The target is specified in it, which is part of the lower part of the frame page, so that the Struts is used to click on, the effects shown below - -------------------------------------------------- -------------------------------------------------- ------------------ <% @ page contenttype = "text / html; charSet = UTF-8"%>

<% @ Taglib Uri = "http://struts.apache.org/tags-html" prefix = "html"%> <% @ Taglib URI = "http://java.sun.com/jsp/jstl/fmt "prefix =" fmt "%> <% @ Taglib URI =" http://java.sun.com/jsp/jstl/core "prefix =" c "%>

Application list </ title> <html: base /> <style type = "text / css"> <! - body {font-size: 12px; FONT-FAMILY: 1PX SOLID # 000000; Margin-Top: 8px; Margin-LEFT: 5PX; Margin-Right: 8px; Scrollbar-Face-Color: #ccccccc; scrollbar-shadow-color: #ffffffffff ; scrollbar-highlight-color: #FFFFFF; scrollbar-3dlight-color: # 6B7A92; scrollbar-darkshadow-color: # 6B7A92; scrollbar-track-color: # E2E2E2; scrollbar-arrow-color: # 6B7A92 filter: DropShadow (Color = SkyBlue, OffX = 1, OFFY = 1, Positive = 1);} .buttons {margin: 1px 2px 1px 2px; border-right: # 5aa9ff 1px solid; border-top: #bfdeff 1px solid; border-left: # BFDeff 1px Solid; Border-Bottom: # 5aa9ff 1px Solid; Font-size: 12px; Color: # 003399; Background: # EBF7FF; Height: 15px;}. Descriptiontd {color: # 003399; font-size: 12px; background- Color: # e1f5ff;} .valuetd {background-color: # e1f5ff; font-size: 12px;}</p> <p>.Value {width: 95%; font-size: 12px;} .innertable {width: 100%; border-collapse: collapse; font-size: 12px; mm1: expression (this.border = 0); mm2: expness this.cellpadding = 0);} .outertable {width: 100%; border-color-collapse: collapse; mm1: expression (this.border = 1); mm2: expression (this.bordercolor = 'white'); mm3: expness This.cellpadding = 2);}. SubjectDesctd {Border-Right: Thin Groove; Border-top: Thin Groove; Border-Left: Thin Groove; Cursor: Hand; Color: White; Border-Bottom: Thin Groove; Background-Color : # 26a8ff; Font-size: 12px; Text-align: center; font: bolder;} -> </ style> </ head> <body> <table> <tr> <td class = "descriptionTD" align = "center"> reqid </ td> <td class = "descriptionTD" align = "center"> createtime </ td> <td class = "descriptiontd" align = "center"> Acceptman </ td> <TD CLA SS = "descriptionTD" align = "center"> Reqn </ td> <td class = "descriptiontd" align = "center"> status </ td></p> <p></ TR></p> <p><c: foreach items = "$ {sessionScope.busirequestQueryreslutlist}" var = "obj"> <tr> <td class = "valueetd" align = "center"> <c: url var = "BizFormViewURL" value = "/ accept queryaction .do "> <c: param name =" reqid "value =" $ {obj.reqid} "/> </ c: URL> <a href=" <c:out value=") "Target =" infoDetail "> <c: out value =" $ {obj.reqid} "/> </a> </ td></p> <p><TD class = "valueEtD" align = "center"> <fmt: formatdate value = "$ {obj.createtime}" type = "date" datestyle = "long" /> </ td></p> <p><TD class = "valueetd" align = "center"> <c: out value = "$ {obj.acceptman}" /> </ td></p> <p><td class = "valueetd" align = "center"> <c: url var = "detailViewURL" value = "/ dsframe / viewdetail.jsp"> <c: param name = "atomid" value = "$ {Obj.Reqid } "/> </ C: URL> <a href =" <c :out value=" - {d di "> >></p> <p><c: out value = "$ {obj.reqno}" /> </ td></p> <p><TD class = "valueetd" align = "center"> <c: choise> <c: when test = "$ {obj.status == '0'}> Unfinished </ c: by> <c: by TEST = "$ {Obj.status == '1'}"> section completes </ c: by> <c: OtherWise> All Complete </ C: OtherWise> </ C: Choose> </ TD> </ TR > </ C: foreach> </ table> <c: remove scope = "session" var = "busirequestQueryreslutlist" /> <hr /> </ body> </ html: html> --------- -------------------------------------------------- -------------------------------------------------- ------------</p> <p>Framepage page: <% @ page contenttype = "text / html; charset = GB2312"%> <% @ page import = "java.util. *"%> <Html> <head> <title> View business list </ title > </ head> <frameset rows = "30%, *" frameborder = "1" border = "1" resize = "yes"> <frame name = "OperationList" src = "<% = request.getContextPath ()% > /MonitorForwardAction.do "marginwidth =" 0 "marginheight =" 0 "> <frame name =" infoDetail "src =" <% = request.getContextPath ()%> / dsframe / query / viewdetail.jsp "marginwidth =" 10 "Marginheight =" 0 "> <NOFRAMES> <body></p> <p><p> This page uses a frame, but your browser does not support the framework. </ p></p> <p></ body> </ noframes> </ frameset></p> <p></ html></p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-57017.html</div><div class="plugin d-flex justify-content-center mt-3"></div><hr><div class="row"><div class="col-lg-12 text-muted mt-2"><i class="icon-tags mr-2"></i><span class="badge border border-secondary mr-2"><h2 class="h6 mb-0 small"><a class="text-secondary" href="tag-2.html">9cbs</a></h2></span></div></div></div></div><div class="card card-postlist border-white shadow"><div class="card-body"><div class="card-title"><div class="d-flex justify-content-between"><div><b>New Post</b>(<span class="posts">0</span>) </div><div></div></div></div><ul class="postlist list-unstyled"> </ul></div></div><div class="d-none threadlist"><input type="checkbox" name="modtid" value="57017" checked /></div></div></div></div></div><footer class="text-muted small bg-dark py-4 mt-3" id="footer"><div class="container"><div class="row"><div class="col">CopyRight © 2020 All Rights Reserved </div><div class="col text-right">Processed: <b>0.036</b>, SQL: <b>9</b></div></div></div></footer><script src="./lang/en-us/lang.js?2.2.0"></script><script src="view/js/jquery.min.js?2.2.0"></script><script src="view/js/popper.min.js?2.2.0"></script><script src="view/js/bootstrap.min.js?2.2.0"></script><script src="view/js/xiuno.js?2.2.0"></script><script src="view/js/bootstrap-plugin.js?2.2.0"></script><script src="view/js/async.min.js?2.2.0"></script><script src="view/js/form.js?2.2.0"></script><script> var debug = DEBUG = 0; var url_rewrite_on = 1; var url_path = './'; var forumarr = {"1":"Tech"}; var fid = 1; var uid = 0; var gid = 0; xn.options.water_image_url = 'view/img/water-small.png'; </script><script src="view/js/wellcms.js?2.2.0"></script><a class="scroll-to-top rounded" href="javascript:void(0);"><i class="icon-angle-up"></i></a><a class="scroll-to-bottom rounded" href="javascript:void(0);" style="display: inline;"><i class="icon-angle-down"></i></a></body></html><script> var forum_url = 'list-1.html'; var safe_token = 'mO5pZJJJNC90ya7UJs_2BkfAcip6b9peqiVhkROlvERQWwev93zpXKGvMnceji7E1hYsJfi1xhVuFhi_2BsjFqIZ7Q_3D_3D'; var body = $('body'); body.on('submit', '#form', function() { var jthis = $(this); var jsubmit = jthis.find('#submit'); jthis.reset(); jsubmit.button('loading'); var postdata = jthis.serializeObject(); $.xpost(jthis.attr('action'), postdata, function(code, message) { if(code == 0) { location.reload(); } else { $.alert(message); jsubmit.button('reset'); } }); return false; }); function resize_image() { var jmessagelist = $('div.message'); var first_width = jmessagelist.width(); jmessagelist.each(function() { var jdiv = $(this); var maxwidth = jdiv.attr('isfirst') ? first_width : jdiv.width(); var jmessage_width = Math.min(jdiv.width(), maxwidth); jdiv.find('img, embed, iframe, video').each(function() { var jimg = $(this); var img_width = this.org_width; var img_height = this.org_height; if(!img_width) { var img_width = jimg.attr('width'); var img_height = jimg.attr('height'); this.org_width = img_width; this.org_height = img_height; } if(img_width > jmessage_width) { if(this.tagName == 'IMG') { jimg.width(jmessage_width); jimg.css('height', 'auto'); jimg.css('cursor', 'pointer'); jimg.on('click', function() { }); } else { jimg.width(jmessage_width); var height = (img_height / img_width) * jimg.width(); jimg.height(height); } } }); }); } function resize_table() { $('div.message').each(function() { var jdiv = $(this); jdiv.find('table').addClass('table').wrap('<div class="table-responsive"></div>'); }); } $(function() { resize_image(); resize_table(); $(window).on('resize', resize_image); }); var jmessage = $('#message'); jmessage.on('focus', function() {if(jmessage.t) { clearTimeout(jmessage.t); jmessage.t = null; } jmessage.css('height', '6rem'); }); jmessage.on('blur', function() {jmessage.t = setTimeout(function() { jmessage.css('height', '2.5rem');}, 1000); }); $('#nav li[data-active="fid-1"]').addClass('active'); </script>