Produced by Araxis Merge on 6/5/2018 10:24:08 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | patch_205_build_9.zip\Java\CacheWeb\war | Cache.jsp | Wed May 30 14:35:16 2018 UTC |
2 | patch_205_build_9.zip\Java\CacheWeb\war | Cache.jsp | Fri Jun 1 19:26:11 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 396 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | <%@ page l anguage="j ava" impor t="java.ut il.*" | |
2 | im port="gov. va.med.cac he.*" impo rt="gov.va .med.cache .gui.share d.*" | |
3 | pa geEncoding ="ISO-8859 -1"%> | |
4 | ||
5 | <%@ taglib prefix="c " uri="htt p://java.s un.com/jsp /jstl/core "%> | |
6 | <%@ taglib uri="http ://java.su n.com/jsp/ jstl/funct ions" pref ix="fn"%> | |
7 | <%@ taglib uri="http :// URL /cache/fun ctions" pr efix="f"%> | |
8 | ||
9 | <jsp:useBe an id="ite mPath" | |
10 | cl ass="gov.v a.med.cach e.gui.shar ed.CacheIt emPath" sc ope="reque st" /> | |
11 | ||
12 | <jsp:setPr operty nam e="itemPat h" propert y="cacheNa me" param= "cache" /> | |
13 | <jsp:setPr operty nam e="itemPat h" propert y="regionN ame" param ="region" /> | |
14 | <jsp:setPr operty nam e="itemPat h" propert y="groupNa mes" param ="group" / > | |
15 | <jsp:setPr operty nam e="itemPat h" propert y="instanc eName" | |
16 | pa ram="insta nce" /> | |
17 | ||
18 | <% | |
19 | St ring path = request. getContext Path(); | |
20 | St ring baseP ath = requ est.getSch eme() + ": //" | |
21 | + request.ge tServerNam e() + ":" + request. getServerP ort() | |
22 | + path + "/" ; | |
23 | re quest.setA ttribute(" metadata", | |
24 | Ca cheManagem entService .resolveMe tadata(ite mPath)); | |
25 | Li st<Abstrac tNamedVO> children = CacheMana gementServ ice | |
26 | .r esolveChil dren(itemP ath); | |
27 | re quest.setA ttribute(" children", children) ; | |
28 | re quest.setA ttribute(" numChildre n", childr en.size()) ; | |
29 | %> | |
30 | <!DOCTYPE html> | |
31 | <html> | |
32 | <head> | |
33 | <base href ="<%=baseP ath%>"> | |
34 | <title>VIX Cache Man ager</titl e> | |
35 | <meta http -equiv="pr agma" cont ent="no-ca che"> | |
36 | <meta http -equiv="ca che-contro l" content ="no-cache "> | |
37 | <meta http -equiv="ex pires" con tent="0"> | |
38 | <meta http -equiv="ke ywords" co ntent="key word1,keyw ord2,keywo rd3"> | |
39 | <meta http -equiv="de scription" content=" This is my page"> | |
40 | </head> | |
41 | ||
42 | <body> | |
43 | <h eader> | |
44 | <h1> VIX Cache Manager</h 1> | |
45 | <scr ipt type=" text/javas cript" src ="scripts/ jquery-1.9 .1.min.js" ></script> | |
46 | <scr ipt type=" text/javas cript"> | |
47 | functi on deleteI tem(item) { | |
48 | var conf irmQuestio n = "Are y ou sure yo u want to delete " + item | |
49 | + "?"; | |
50 | if (conf irm(confir mQuestion) ) { | |
51 | $ | |
52 | .aja x({ | |
53 | url : 'cacheitem ' + item, | |
54 | type : 'DELETE', | |
55 | succes s : functi on(data, t extStatus, jqXHR) { | |
56 | var mess age = this .url.subst ring(this. url | |
57 | .i ndexOf("/" )); | |
58 | message += " has b een queued for delet ion." | |
59 | + " The cach e may take a minute to actuall y delete t he item."; | |
60 | alert(me ssage); | |
61 | window.l ocation.as sign("Cach e.jsp?" + data); | |
62 | }, | |
63 | error : function (jqXHR, te xtStatus, errorThrow n) { | |
64 | alert("e rror: " + errorThrow n + " " | |
65 | + this.url); | |
66 | } | |
67 | }); | |
68 | } | |
69 | } | |
70 | </sc ript> | |
71 | </ header> | |
72 | <c :if test=" ${itemPath .cacheName != null}" > | |
73 | <div role="nav igation"> | |
74 | <a hre f="Cache.j sp">Home</ a> | |
75 | <c:for Each var=" breadCrumb " items="$ {itemPath. ancestors} "> | |
76 | <a href= "Cache.jsp ?${f:build QueryStrin g(breadCru mb) }">${b readCrumb. name}</a>: | |
77 | </c:fo rEach> | |
78 | ${item Path.name} | |
79 | </di v> | |
80 | <sec tion id="d etails"> | |
81 | <c:cho ose> | |
82 | <c:when test='${ i temPath.it emType == "cache" }' > | |
83 | <h3>Cache Informatio n</h3> | |
84 | <table> | |
85 | <t r> | |
86 | <td> URI:</td> | |
87 | <td> ${metadata .cacheUri} </td> | |
88 | </ tr> | |
89 | <t r> | |
90 | <td> Location:< /td> | |
91 | <td> ${metadata .location} </td> | |
92 | </ tr> | |
93 | <t r> | |
94 | <td> Protocol:< /td> | |
95 | <td> ${metadata .protocol} </td> | |
96 | </ tr> | |
97 | </table> | |
98 | </c:when > | |
99 | <c:when test='${ i temPath.it emType == "region" } '> | |
100 | <h3>Region Informati on</h3> | |
101 | <table> | |
102 | <t r> | |
103 | <td> Total Spac e:</td> | |
104 | <td> ${metadata .totalSpac eFormatted }</td> | |
105 | </ tr> | |
106 | <t r> | |
107 | <td> Used Space :</td> | |
108 | <td> ${metadata .usedSpace Formatted} </td> | |
109 | </ tr> | |
110 | </table> | |
111 | </c:when > | |
112 | <c:when test='${ i temPath.it emType == "group" }' > | |
113 | <h3>Group Informatio n</h3> | |
114 | <table> | |
115 | <t r> | |
116 | <td> Size:</td> | |
117 | <td> ${metadata .sizeForma tted}</td> | |
118 | </ tr> | |
119 | <% -- <tr> | |
120 | <td> Created:</ td> | |
121 | <td> ${metadata .createDat e}</td> | |
122 | </ tr> --%> | |
123 | <t r> | |
124 | <td> Last Acces sed:</td> | |
125 | <td> ${metadata .lastAcces sDate}</td > | |
126 | </ tr> | |
127 | <t r> | |
128 | <td> Type:</td> | |
129 | <td> ${f:getGro upSemantic Type(itemP ath.cacheN ame, | |
130 | itemPa th.regionN ame, fn:le ngth(itemP ath.groupN ames) - 1) }</td> | |
131 | </ tr> | |
132 | </table> | |
133 | <input typ e="button" value="De lete" | |
134 | on Click="del eteItem('$ {f:createP athInfo(it emPath)}') " /> | |
135 | </c:when > | |
136 | <c:when test='${ i temPath.it emType == "instance" }'> | |
137 | <h3>Instan ce Informa tion</h3> | |
138 | <table> | |
139 | <t r> | |
140 | <td> Size:</td> | |
141 | <td> ${metadata .sizeForma tted}</td> | |
142 | </ tr> | |
143 | <% -- <tr> | |
144 | <td> Created:</ td> | |
145 | <td> ${metadata .createDat e}</td> | |
146 | </ tr> --%> | |
147 | <t r> | |
148 | <td> Last Acces sed:</td> | |
149 | <td> ${metadata .lastAcces sDate}</td > | |
150 | </ tr> | |
151 | <% -- <tr> | |
152 | <td> Media Type :</td> | |
153 | <td> ${metadata .mediaType }</td> | |
154 | </ tr> --%> | |
155 | <t r> | |
156 | <td> Checksum:< /td> | |
157 | <td> ${metadata .checksum} </td> | |
158 | </ tr> | |
159 | <t r> | |
160 | <td> Type:</td> | |
161 | <td> ${f:getIns tanceSeman ticType(it emPath.cac heName, | |
162 | itemPa th.regionN ame)}</td> | |
163 | </ tr> | |
164 | </table> | |
165 | <input typ e="button" value="De lete" | |
166 | on Click="del eteItem('$ {f:createP athInfo(it emPath)}') " /> | |
167 | </c:when > | |
168 | </c:ch oose> | |
169 | </se ction> | |
170 | </ c:if> | |
171 | <c :if test=" ${ itemPat h.instance Name == nu ll }"> | |
172 | <sec tion id="c hildren"> | |
173 | <h3>Co ntents</h3 > | |
174 | <c:cho ose> | |
175 | <c:when test='${ n umChildren > 0 }'> | |
176 | <div style ="margin-l eft: 50px" > | |
177 | <t able> | |
178 | <c:f orEach var ="child" i tems="${ch ildren}"> | |
179 | <tr> | |
180 | <c:if | |
181 | test='${ c hild.path. itemType = = "group" || child.p ath.itemTy pe == "ins tance" }'> | |
182 | <td><input type="but ton" value ="Delete" | |
183 | on Click="del eteItem('$ {f:createP athInfo(ch ild.path)} ')" /> | |
184 | </td> | |
185 | </c:if> | |
186 | <td><a | |
187 | href="Cach e.jsp?${f: buildQuery String(chi ld.path) } ">${ | |
188 | ch ild.name}< /a></td> | |
189 | </tr> | |
190 | </c: forEach> | |
191 | </ table> | |
192 | </div> | |
193 | </c:when > | |
194 | <c:when test='${ n umChildren == 0 }'>E mpty</c:wh en> | |
195 | </c:ch oose> | |
196 | </se ction> | |
197 | </ c:if> | |
198 | </body> | |
199 | </html> |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.