56. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/5/2018 10:24:16 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.

56.1 Files compared

# Location File Last Modified
1 patch_205_build_9.zip\Java\VixGuiWebApp\WebRoot\secure VixLog.jsp Wed May 30 14:35:17 2018 UTC
2 patch_205_build_9.zip\Java\VixGuiWebApp\WebRoot\secure VixLog.jsp Mon Jun 4 20:53:46 2018 UTC

56.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 1444
Changed 1 6
Inserted 0 0
Removed 0 0

56.3 Comparison options

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

56.4 Active regular expressions

No regular expressions were active.

56.5 Comparison detail

  1   <%@ page 
  2   language=" java" 
  3   import="ja va.util.*,  java.text .*, gov.va .med.imagi ng.*, gov. va.med.ima ging.excha nge.enums. *" 
  4   pageEncodi ng="ISO-88 59-1"%>
  5   <%@page im port="gov. va.med.ima ging.trans actioncont ext.Transa ctionConte xt"%>
  6   <%@page im port="gov. va.med.ima ging.trans actioncont ext.Transa ctionConte xtFactory" %>
  7   <%@ taglib  uri="http ://java.su n.com/jsp/ jstl/core"  prefix="c "%>
  8   <%@ taglib  uri="http :// URL /vix/busin ess" prefi x="busines s"%>
  9   <%@ taglib  uri="http :// URL /vix/trans actionlogs " prefix=" log"%>
  10   <%@ taglib  uri="http :// URL /vix/menu"  prefix="m enu"%>
  11  
  12   <jsp:direc tive.page  session="f alse" cont entType="t ext/html"  />
  13  
  14   <% 
  15           Da teFormat d fDateOnly  = new Simp leDateForm at("MM/dd/ yyyy");
  16           
  17           
  18           St ring conte xtPath = r equest.get ContextPat h();
  19           St ring servl etPath = r equest.get ServletPat h();
  20           St ring baseP ath = requ est.getSch eme()+":// "+request. getServerN ame()+":"+ request.ge tServerPor t()+contex tPath;
  21           
  22           Da te fromDat e = gov.va .med.imagi ng.DateUti l.currentD ayStart();
  23           St ring reset StartDate  = dfDateOn ly.format( fromDate);
  24           St ring fromD ateParam =  request.g etParamete r("fromDat e");
  25           if (fromDateP aram != nu ll)
  26                    from Date = dfD ateOnly.pa rse( fromD ateParam ) ;
  27           fr omDate = g ov.va.med. imaging.Da teUtil.day Start(from Date);
  28           fr omDatePara m =dfDateO nly.format (fromDate) ;
  29                    
  30           Da te toDate  = gov.va.m ed.imaging .DateUtil. currentDay End();
  31           St ring reset EndDate =  dfDateOnly .format(to Date);
  32           St ring toDat eParam = r equest.get Parameter( "toDate");
  33           if (toDatePar am != null )
  34                    toDa te = dfDat eOnly.pars e( toDateP aram );
  35           to Date = gov .va.med.im aging.Date Util.dayEn d(toDate);
  36           to DateParam  = dfDateOn ly.format( toDate);
  37                    
  38           St ring image QualityPar am = reque st.getPara meter("ima geQuality" );
  39           Im ageQuality  imageQual ity = null ;
  40           if (imageQual ityParam ! = null)
  41           {
  42                    try{ imageQuali ty = Image Quality.va lueOf(imag eQualityPa ram);}
  43                    catc h(IllegalA rgumentExc eption iaX ){imageQua lity = nul l;}
  44           }
  45           St ring user  = request. getParamet er("user") ;
  46           St ring modal ity = requ est.getPar ameter("mo dality");
  47           
  48           St ring datas ourceProto colParam =  request.g etParamete r("datasou rceProtoco l");
  49           Da tasourcePr otocol dat asourcePro tocol = nu ll;
  50           if (datasourc eProtocolP aram != nu ll)
  51           {
  52                    try{  datasourc eProtocol  = Datasour ceProtocol .valueOf(d atasourceP rotocolPar am); }
  53                    catc h(IllegalA rgumentExc eption iaX ){datasour ceProtocol  = null;}
  54           }
  55           
  56           St ring error Message =  request.ge tParameter ("errorMes sage");
  57           St ring trans actionId =  request.g etParamete r("transac tionId");
  58           St ring image Urn = requ est.getPar ameter("im ageUrn");
  59           
  60           St ring forwa rdIteratio nParam = r equest.get Parameter( "forwardIt eration");
  61           Bo olean forw ardIterati on = Boole an.FALSE;
  62           if ( forwardI terationPa ram != nul l )
  63                    forw ardIterati on = Boole an.parseBo olean(forw ardIterati onParam);
  64           
  65           St ring start IndexParam  = request .getParame ter("start Index");
  66           in t startInd ex = 0;
  67           if (startInde xParam !=  null)
  68                    star tIndex = I nteger.par seInt(star tIndexPara m);
  69                    
  70           //  DKB
  71           if  (startInd ex < 0) st artIndex =  0;
  72                    
  73           St ring resul tsPerPageP aram = req uest.getPa rameter("r esultsPerP age");
  74           In teger requ estResults PerPage =  new Intege r(100);
  75           if (resultsPe rPageParam  != null)
  76                    requ estResults PerPage =  new Intege r(resultsP erPagePara m);
  77                    
  78           in t endIndex  = startIn dex + requ estResults PerPage;
  79  
  80           St ring byteT ransferPat hParam = r equest.get Parameter  ("byteTran sferPath") ;
  81           By teTransfer Path byteT ransferPat h = null;
  82           if (byteTrans ferPathPar am != null )
  83           {
  84                    try{  byteTrans ferPath =  ByteTransf erPath.val ueOf(byteT ransferPat hParam); }
  85                    catc h(IllegalA rgumentExc eption iaX ){byteTran sferPath =  null;}
  86           }
  87           el se
  88           {
  89                    byte TransferPa th = ByteT ransferPat h.DS_IN_FA CADE_OUT;
  90           }
  91           
  92           bo olean debu g = false;
  93           St ring debug Value = re quest.getP arameter(" debug");
  94           if ((debugVal ue != null ) && (debu gValue.len gth() > 0) )
  95           {
  96                    debu g = Boolea n.parseBoo lean(debug Value);
  97           }
  98           
  99           Tr ansactionC ontext tra nsactionCo ntext = Tr ansactionC ontextFact ory.get();
  100   %>
  101  
  102   <html>
  103           <! -- 
  104           No tes from t he JSP Spe c (syntax  examples h ave added  whitespace  to preven t recognit ion as
  105           di rectives o r elements ).
  106           
  107           A  JSP page h as element s and temp late data.  An elemen t is an in stance of  an element
  108           ty pe known t o the JSP  container.  Template  data is ev erything e lse; that  is, anythi ng
  109           th at the JSP  translato r does not  know abou t.
  110           Th ere are th ree types  of element s: directi ve element s, scripti ng element s, and
  111           ac tion eleme nts.
  112           Di rectives " < %@ direc tive...%>"  provide g lobal info rmation th at is conc eptually v alid indep endent
  113           of  any speci fic reques t received  by the JS P page. Th ey provide  informati on for
  114           th e translat ion phase.
  115           Ac tion eleme nts follow  the synta x of an XM L element.   Actions  provide in formation  for the re quest 
  116           pr ocessing p hase.  An  action may  create ob jects and  may make t hem availa ble to the  scripting  elements 
  117           th rough scri pting-spec ific varia bles.
  118           Sc ripting El ements EL  expression s use the  syntax ${e xpr}.  JSP  2.0 retai ns the thr ee languag e-based 
  119           ty pes of scr ipting ele ments: dec larations,  scriptlet s, and exp ressions. 
  120           De clarations  follow th e syntax <  %! ... %> .
  121           Sc riptlets f ollow the  syntax < %  ... %>. 
  122           Ex pressions  follow the  syntax <  %= ... %>.
  123           
  124           A  context-re lative pat h is a pat h that sta rts with a  slash (/) . It is to  be interp reted
  125           as  relative  to the app lication t o which th e JSP page  or tag fi le belongs .
  126           A  page relat ive path i s a path t hat does n ot start w ith a slas h (/). It  is to be i nterpreted
  127           as  relative  to the cur rent JSP p age, or th e current  JSP file o r tag file , dependin g on where  the path  is being u sed.
  128           
  129           A  JSP Docume nt is a JS P page tha t is also  an XML doc ument. Whe n a JSP do cument is  encountere d by
  130           th e JSP cont ainer, it  is interpr eted as an  XML docum ent first  and after  that as a  JSP page.
  131           -- >
  132  
  133           <h ead>
  134                    <met a http-equ iv="pragma " content= "no-cache" />
  135                    <met a http-equ iv="cache- control" c ontent="no -cache"/>
  136                    <met a http-equ iv="expire s" content ="0"/>    
  137                    <met a http-equ iv="keywor ds" conten t="Vista V IX Imaging  Transacti on"/>
  138                    <met a http-equ iv="descri ption" con tent="Vist A Imaging  Web Access  Transacti on"/>
  139                                       
  140                    <sty le type="t ext/css" t itle="curr entStyle">
  141                             @impor t url(../s tyle/scree n1.css);
  142                    </st yle>
  143                    <!--  addition  below for  a custom c ss for IE  7-8, and t ext-printi ng in Fire Fox 3.x  7 /31/09 -->  
  144                    <lin k rel="sty lesheet" t ype="text/ css" media ="print" h ref="../st yle/printe r_friendly 1.css" />
  145                    <!-- [if gte IE  7]>
  146                            <style  type="text /css" titl e="current Style">
  147                                @im port url(. ./style/sc reenie1.cs s);
  148                                </s tyle>
  149                    <![e ndif]-->
  150                    <!-- for print  preview in  IE 7-8 (m inimum)-->
  151                    <!-- [if gte IE  7]>
  152                                <li nk rel="st ylesheet"  type="text /css" medi a="print"  href="../s tyle/print erie1.css"  />
  153                    <![e ndif]--> 
  154                    <tit le>Vix - T ransaction  Log (<%=  transactio nContext.g etRealm()  %>)</title >
  155                    <scr ipt type=" text/javas cript" src ="../scrip t/browser. js">
  156                    </sc ript>
  157                    
  158           <s cript lang uage = "Ja vascript">
  159           /* *
  160            *  DHTML dat e validati on script.  Courtesy  of SmartWe bby.com (h ttp://www. smartwebby .com/dhtml /)
  161            *  Enhanced  1-20-2010  to check d ate range  and to avo id pop-up  windows.
  162            * /
  163           //  Declaring  valid dat e characte r, minimum  year and  maximum ye ar
  164           va r dtCh= "/ ";
  165           va r minYear= 1900;
  166           va r maxYear= 2100;
  167           fu nction isI nteger(s){
  168                    var  i;
  169                    for  (i = 0; i  < s.length ; i++){   
  170                             // Che ck that cu rrent char acter is n umber.
  171                             var c  = s.charAt (i);
  172                             if ((( c < "0") | | (c > "9" ))) return  false;
  173                    }
  174                    // A ll charact ers are nu mbers.
  175                    retu rn true;
  176           }
  177  
  178           fu nction str ipCharsInB ag(s, bag) {
  179                    var  i;
  180                    var  returnStri ng = "";
  181                    // S earch thro ugh string 's charact ers one by  one.
  182                    // I f characte r is not i n bag, app end to ret urnString.
  183                    for  (i = 0; i  < s.length ; i++){   
  184                             var c  = s.charAt (i);
  185                             if (ba g.indexOf( c) == -1)  returnStri ng += c;
  186                    }
  187                    retu rn returnS tring;
  188           }
  189  
  190           fu nction day sInFebruar y (year){
  191                    // F ebruary ha s 29 days  in any yea r evenly d ivisible b y four,
  192                    // E XCEPT for  centurial  years whic h are not  also divis ible by 40 0.
  193                    retu rn (((year  % 4 == 0)  && ( (!(y ear % 100  == 0)) ||  (year % 40 0 == 0)))  ? 29 : 28  );
  194           }
  195           fu nction Day sArray(n)  {
  196                    for  (var i = 1 ; i <= n;  i++) {
  197                             this[i ] = 31
  198                             if (i= =4 || i==6  || i==9 | | i==11) { this[i] =  30}
  199                             if (i= =2) {this[ i] = 29}
  200               } 
  201               return th is
  202           }
  203  
  204           fu nction isD ate(dtStr) {
  205                    //do cument.all .errorLabe l.childNod es[0].node Value = "& nbsp"
  206                    var  daysInMont h = DaysAr ray(12)
  207                    var  pos1=dtStr .indexOf(d tCh)
  208                    var  pos2=dtStr .indexOf(d tCh,pos1+1 )
  209                    var  strMonth=d tStr.subst ring(0,pos 1)
  210                    var  strDay=dtS tr.substri ng(pos1+1, pos2)
  211                    var  strYear=dt Str.substr ing(pos2+1 )
  212                    strY r=strYear
  213                    if ( strDay.cha rAt(0)=="0 " && strDa y.length>1 ) strDay=s trDay.subs tring(1)
  214                    if ( strMonth.c harAt(0)== "0" && str Month.leng th>1) strM onth=strMo nth.substr ing(1)
  215                    for  (var i = 1 ; i <= 3;  i++) {
  216                             if (st rYr.charAt (0)=="0" & & strYr.le ngth>1) st rYr=strYr. substring( 1)
  217                    }
  218                    mont h=parseInt (strMonth)
  219                    day= parseInt(s trDay)
  220                    year =parseInt( strYr)
  221                    if ( pos1==-1 | | pos2==-1 ){
  222                             //docu ment.all.e rrorLabel. childNodes [0].nodeVa lue = "The  date form at should  be : mm/dd /yyyy"
  223                             alert( "The date  format sho uld be : m m/dd/yyyy" )
  224                             return  false
  225                    }
  226                    if ( strMonth.l ength<1 ||  month<1 | | month>12 ){
  227                             //docu ment.all.e rrorLabel. childNodes [0].nodeVa lue = "Ple ase enter  a valid mo nth"
  228                             alert( "Please en ter a vali d month")
  229                             return  false
  230                    }
  231                    if ( strDay.len gth<1 || d ay<1 || da y>31 || (m onth==2 &&  day>daysI nFebruary( year)) ||  day > days InMonth[mo nth]){
  232                             //docu ment.all.e rrorLabel. childNodes [0].nodeVa lue = "Ple ase enter  a valid da y"
  233                             alert( "Please en ter a vali d day")
  234                             return  false
  235                    }
  236                    if ( strYear.le ngth != 4  || year==0  || year<m inYear ||  year>maxYe ar){
  237                             //docu ment.all.e rrorLabel. childNodes [0].nodeVa lue = "Ple ase enter  a valid 4  digit year  between " +minYear+"  and "+max Year
  238                             alert( "Please en ter a vali d 4 digit  year betwe en "+minYe ar+" and " +maxYear)
  239                             return  false
  240                    }
  241                    if ( dtStr.inde xOf(dtCh,p os2+1)!=-1  || isInte ger(stripC harsInBag( dtStr, dtC h))==false ){
  242                             //docu ment.all.e rrorLabel. childNodes [0].nodeVa lue = "Ple ase enter  a valid da te"
  243                             alert( "Please en ter a vali d date")
  244                             return  false
  245                    }
  246           re turn true
  247           }
  248           </ script>
  249                    
  250                    <scr ipt type=" text/javas cript">          
  251                             functi on getCurr entPageSta rtIndex()  {
  252                                      var star tIndexElem ent = docu ment.getEl ementById( 'startInde x');
  253                                      if(start IndexEleme nt && star tIndexElem ent.value  && startIn dexElement .value !=  '')
  254                                               return par seInt(star tIndexElem ent.value) ;
  255                                      return 0 ;
  256                             }
  257                             functi on getCurr entPageEnd Index() {
  258                                      var endI ndexElemen t = docume nt.getElem entById('e ndIndex');
  259                                      if(endIn dexElement  && endInd exElement. value && e ndIndexEle ment.value  != '')
  260                                               return par seInt(endI ndexElemen t.value);
  261                                      return 1 00;
  262                             }
  263                             functi on getSele ctedResult sPerPage()  {
  264                                      var resu ltsSelectE lement = d ocument.ge tElementBy Id('result sPerPage') ;
  265                                      var sele ctedIndex  = resultsS electEleme nt.selecte dIndex; 
  266                                      return p arseInt(re sultsSelec tElement.o ptions[sel ectedIndex ].value);
  267                             }
  268                             // The  following  functions  do the HT ML GET req uests.
  269                             functi on move(st artIndex,  endIndex)  {
  270                                      document .getElemen tById('tra nsactionLo gSearchCri teria').ac tion="<%=c ontextPath  + servlet Path %>";
  271                                      document .getElemen tById('for mat').valu e='text/ht ml';
  272                                      document .getElemen tById('sta rtIndex'). value=star tIndex;
  273                                      document .getElemen tById('end Index').va lue=endInd ex;
  274                                      document .getElemen tById('tra nsactionLo gSearchCri teria').su bmit();                         
  275                             }
  276                             functi on firstPa ge() {
  277                                      //docume nt.all.err orLabel.ch ildNodes[0 ].nodeValu e = "&nbsp ";                                                                                            
  278                                      var from Date = doc ument.getE lementById ('fromDate ');
  279                                      var toDa te = docum ent.getEle mentById(' toDate');                            
  280                                 if  (isDate(f romDate.va lue)==fals e){
  281                                               fromDate.f ocus()
  282                                               return fal se
  283                                      }
  284                                      if (isDa te(toDate. value)==fa lse){
  285                                               toDate.foc us()
  286                                               return fal se
  287                                      }
  288                                      // flip  the values  if the St art Date i s after th e End Date
  289                                      if (Date .parse(fro mDate.valu e) > Date. parse(toDa te.value)) {
  290                                               var startD ateValuete mp = toDat e.value;
  291                                               var endDat eValuetemp  = fromDat e.value; 
  292                                               fromDate.v alue = sta rtDateValu etemp;
  293                                               toDate.val ue = endDa teValuetem p;
  294                                               fromDate.f ocus();
  295                                               return fal se;
  296                                      }
  297                                      else
  298                                      {
  299                                               move(0, ge tSelectedR esultsPerP age());
  300                                      }
  301                                      
  302                             }
  303                             functi on nextPag e() {
  304                                      var next PageStartI ndex = get CurrentPag eEndIndex( );
  305                                      var next PageEndInd ex = nextP ageStartIn dex + getS electedRes ultsPerPag e();
  306                                      move(nex tPageStart Index, nex tPageEndIn dex);
  307                             }
  308                             functi on previou sPage() {
  309                                      var next PageStartI ndex = get CurrentPag eStartInde x() - getS electedRes ultsPerPag e();
  310                                      var next PageEndInd ex = getCu rrentPageS tartIndex( );
  311                                      if (next PageStartI ndex < 0)  {
  312                                               nextPageSt artIndex =  0;
  313                                               nextPageEn dIndex = g etSelected ResultsPer Page();
  314                                      }                                  
  315                                      move(nex tPageStart Index, nex tPageEndIn dex);
  316                             }
  317                             // Sen d an HTTP  request fo r Excel, C SV and TSV  formatted  transacti on logs
  318                             functi on submitE xcel(mimeT ype) {
  319                             //docu ment.all.e rrorLabel. childNodes [0].nodeVa lue = "&nb sp";
  320                             var fr omDate = d ocument.ge tElementBy Id('fromDa te');
  321                             var to Date = doc ument.getE lementById ('toDate') ;
  322                                      //alert( fromDate.v alue)
  323                                 if  (isDate(f romDate.va lue)==fals e){
  324                                               fromDate.f ocus()
  325                                               return fal se
  326                                      }
  327                                      if (isDa te(toDate. value)==fa lse){
  328                                               toDate.foc us()
  329                                               return fal se
  330                                      }
  331                                      // flip  the values  if the St art Date i s after th e End Date
  332                                      if (Date .parse(fro mDate.valu e) > Date. parse(toDa te.value)) {
  333                                               var startD ateValuete mp = toDat e.value;
  334                                               var endDat eValuetemp  = fromDat e.value; 
  335                                               fromDate.v alue = sta rtDateValu etemp;
  336                                               toDate.val ue = endDa teValuetem p;
  337                                               fromDate.f ocus();
  338                                               return fal se;
  339                                      }       
  340                                      else
  341                                      {
  342                                               move(0, ge tSelectedR esultsPerP age());
  343                                      }                
  344                             
  345                                      document .getElemen tById('tra nsactionLo gSearchCri teria').ac tion='Exce lTransacti onLog';
  346                                      document .getElemen tById('for mat').valu e=mimeType
  347                                      document .getElemen tById('tra nsactionLo gSearchCri teria').su bmit();                         
  348                             }
  349                             functi on resetSe archCriter ia() {
  350                                      document .getElemen tById('tra nsactionLo gSearchCri teria').re set();
  351                                      var from Date = doc ument.getE lementById ('fromDate ');
  352                                      var toDa te = docum ent.getEle mentById(' toDate');
  353                                      fromDate .value = ' <%= resetS tartDate % >';                                           
  354                                      toDate.v alue = '<% = resetEnd Date %>';                                       
  355                             }
  356                             // Con text Help  Pop-up  
  357                             var he lpSubjectE lement = n ull;
  358                             var he lpContentE lement = n ull;
  359  
  360                             // reg exElementI d - the ID  of the el ement that  is the su bject of t he help 
  361                             // reg exHelpElem entId - th e ID of th e help ele ment (the  one that c ontains th e help tex t)                          
  362                             functi on showHel p(helpSubj ectElement Id, helpCo ntentEleme ntId)
  363                             {
  364                                      //alert( "Agent is  " + browse rSniffer.a gt);
  365                                      helpSubj ectElement  = documen t.getEleme ntById(hel pSubjectEl ementId);
  366                                      helpCont entElement  = documen t.getEleme ntById(hel pContentEl ementId);
  367                                      
  368                                      helpCont entElement .style.top  = (browse rSniffer.g etElementT op(helpSub jectElemen tId) + 10)  + 'px';
  369                                      helpCont entElement .style.lef t = (brows erSniffer. getElement Left(helpS ubjectElem entId) + b rowserSnif fer.getEle mentWidth( helpSubjec tElementId ) + 100) +  'px';
  370                                      //alert( "helpConte ntElement  is " + hel pContentEl ement + "@  " + helpC ontentElem ent.style. top + ", "  + helpCon tentElemen t.style.le ft);
  371                                      helpCont entElement .style.vis ibility =  "visible";
  372                             }
  373                             
  374                             functi on hideHel p()
  375                             {
  376                                      helpCont entElement .style.vis ibility =  "hidden";
  377                                      helpSubj ectElement  = null;
  378                                      helpCont entElement  = null;
  379                             }
  380                             
  381                             functi on setHelp Field(valu e)
  382                             {
  383                                      helpSubj ectElement .value = v alue;
  384                             }
  385                             functi on appendH elpField(v alue)
  386                             {
  387                                      helpSubj ectElement .value = h elpSubject Element.va lue + valu e;
  388                             }
  389                             
  390                             // met hods to ch ange the d isplayed i mages on m ouse event
  391                             functi on turnMou seOff(Imag eName) {
  392                                      document .images[Im ageName].s rc = eval( ImageName  + "MouseOf f.src");
  393                             }
  394                             
  395                             functi on turnMou seDown(Ima geName) {
  396                                      document .images[Im ageName].s rc = eval( ImageName  + "MouseDo wn.src");
  397                             }
  398                    </sc ript>                  
  399           </ head>
  400           <b ody id="vi x-transact ion">
  401                    <div  id="pageH eader">
  402                             <h1><s pan>&nbsp; VIX - Tran saction Lo g (<%= tra nsactionCo ntext.getR ealm() %>) </span></h 1>
  403                    </di v>
  404                    <div  id="conta iner">
  405                             <div i d="selecti on">
  406                                      <h1>Tran saction Lo g Filter</ h1>
  407                             </div>
  408                                      <form id ="transact ionLogSear chCriteria " action=< %= "\"" +  servletPat h + "\""%>  method="G ET">
  409                                                       <! -- 
  410                                                       Th e startInd ex and end Index elem ents are t he indexes  of the cu rrently di splayed pa ge.
  411                                                       Th e script t hat submit s this for m will pus h values i nto these  elements i mmediately
  412                                                       be fore submi tting the  form, whic h get pass ed as quer y paramete rs.
  413                                                       Th e resultsP erPage que ry paramet er is set  from a sel ect elemen t within t his form.
  414                                                       Th e aforemen tioned scr ipt (that  submits th is form) u ses the re sultsPerPa ge
  415                                                       el ement to c alculate t he request ed start a nd end ind ex.  Other  than that  the
  416                                                       re sultsPerPa ge is simp ly passed  back and f orth betwe en browser  and serve r so
  417                                                       th at it rema ins durabl e.
  418                                                       -- >
  419                                                       <i nput type= "hidden" i d="startIn dex" name= "startInde x" value=" ${param.st artIndex}"  />
  420                                                       <i nput type= "hidden" i d="endInde x" name="e ndIndex" v alue="${pa ram.endInd ex}" />
  421                                                       <i nput type= "hidden" i d="format"  name="for mat" value =""/>
  422                                                   <div i d="dateInp uts">
  423                                 <t able cells pacing="1"  cellpaddi ng="8" bor der="0" wi dth="1200" >
  424                                                                         <tr>
  425                                                                                  <td widt h="8%"><la bel for="f romDate">S tart Date:  </label>< input type ="text" ma xlength="1 0" id="fro mDate" nam e="fromDat e" tabinde x="1" 
  426                                                           value=<%=  fromDateP aram %> st yle="width :100; heig ht:25"/></ td>
  427                                          </tr >
  428                                          <tr> </tr>
  429                                          <tr>
  430                                                                                  <td widt h="8%"><la bel for="t oDate">End  Date: </l abel><inpu t type="te xt" maxlen gth="10" i d="toDate"  name="toD ate" tabin dex="2"                                               
  431                                                                   v alue=<%= t oDateParam  %> style= "width:100 ; height:2 5"/></td>
  432                                                                                  <td><br> <br></td> 
  433                                                                          </tr>   
  434                                  < /table>
  435                                  < /div>
  436                                  < br />
  437                                                                <c:s et var="tr ansactionP erPage" va lue="${par am.results PerPage}"/ >
  438                                                                <div  id="trans actions">
  439                                                       <l abel for=" resultsPer Page">Tran sactions p er Page:</ label><br/ >
  440                                                                <sel ect id="re sultsPerPa ge" name=" resultsPer Page"/>
  441                                                                  <c :choose>
  442                                                                                  <c:when  test="${tr ansactionP erPage ==  '25'}">
  443                                                                                           <jsp:eleme nt name="o ption">
  444                                                                                                   <j sp:attribu te name="v alue">25</ jsp:attrib ute>
  445                                                                                                   <j sp:attribu te name="s elected">s elected</j sp:attribu te>
  446                                                                                                   <j sp:body>25 </jsp:body >
  447                                                                                           </jsp:elem ent>
  448                                                                                  </c:when >
  449                                                                                  <c:other wise>
  450                                                                                           <jsp:eleme nt name="o ption">
  451                                                                                                   <j sp:attribu te name="v alue">25</ jsp:attrib ute>
  452                                                                                                   <j sp:body>25 </jsp:body >
  453                                                                                           </jsp:elem ent>
  454                                                                                  </c:othe rwise>
  455                                                                         </c:ch oose>
  456                                                                         <c:cho ose>
  457                                                                                  <c:when  test="${tr ansactionP erPage ==  '100' || e mpty param .resultsPe rPage}">
  458                                                                                           <jsp:eleme nt name="o ption">
  459                                                                                                   <j sp:attribu te name="v alue">100< /jsp:attri bute>
  460                                                                                                   <j sp:attribu te name="s elected">s elected</j sp:attribu te>
  461                                                                                                   <j sp:body>10 0</jsp:bod y>
  462                                                                                           </jsp:elem ent>
  463                                                                                  </c:when >
  464                                                                                  <c:other wise>
  465                                                                                           <jsp:eleme nt name="o ption">
  466                                                                                                   <j sp:attribu te name="v alue">100< /jsp:attri bute>
  467                                                                                                   <j sp:body>10 0</jsp:bod y>
  468                                                                                           </jsp:elem ent>
  469                                                                                  </c:othe rwise>
  470                                                                         </c:ch oose>
  471                                                                         <c:cho ose>
  472                                                                                  <c:when  test="${tr ansactionP erPage ==  '250'}">
  473                                                                                           <jsp:eleme nt name="o ption">
  474                                                                                                   <j sp:attribu te name="v alue">250< /jsp:attri bute>
  475                                                                                                   <j sp:attribu te name="s elected">s elected</j sp:attribu te>
  476                                                                                                   <j sp:body>25 0</jsp:bod y>
  477                                                                                           </jsp:elem ent>
  478                                                                                  </c:when >
  479                                                                                  <c:other wise>
  480                                                                                           <jsp:eleme nt name="o ption">
  481                                                                                                   <j sp:attribu te name="v alue">250< /jsp:attri bute>
  482                                                                                                   <j sp:body>25 0</jsp:bod y>
  483                                                                                           </jsp:elem ent>
  484                                                                                  </c:othe rwise>
  485                                                                         </c:ch oose>
  486                                                                         <c:cho ose>
  487                                                                                  <c:when  test="${tr ansactionP erPage ==  '1000'}">
  488                                                                                           <jsp:eleme nt name="o ption">
  489                                                                                                   <j sp:attribu te name="v alue">1000 </jsp:attr ibute>
  490                                                                                                   <j sp:attribu te name="s elected">s elected</j sp:attribu te>
  491                                                                                                   <j sp:body>10 00</jsp:bo dy>
  492                                                                                           </jsp:elem ent>
  493                                                                                  </c:when >
  494                                                                                  <c:other wise>
  495                                                                                           <jsp:eleme nt name="o ption">
  496                                                                                                   <j sp:attribu te name="v alue">1000 </jsp:attr ibute>
  497                                                                                                   <j sp:body>10 00</jsp:bo dy>
  498                                                                                           </jsp:elem ent>
  499                                                                                  </c:othe rwise>
  500                                                                         </c:ch oose>
  501                                                                </se lect>
  502                                                            <br /><b r /><br /> <br />
  503                             </div>
  504                                                       <d iv id="cen ter">
  505                                                            <table b order="0"  width="700 ">
  506                                                            <tr>
  507                                                                <td> <input typ e="button"  style="wi dth:150;he ight:30;di splay:inli ne" value= "Show in B rowser" on click="fir stPage();"  alt="Show InBrowser" /></td>     
  508                                                                <td> <input typ e="button"  style="wi dth:150;he ight:30;di splay:inli ne" value= "Save as C SV" onclic k="submitE xcel('text /csv');" a lt="SaveAs CSV"/></td >       
  509                                                                <td> <input typ e="button"  style="wi dth:150;he ight:30;di splay:inli ne" value= "Save as T SV" onclic k="submitE xcel('text /tab-separ ated-value s');" alt= "SaveAsTSV "/></td>
  510                                                                <td> <input typ e="button"  style="wi dth:150;he ight:30;di splay:inli ne" value= "Reset" on click="res etSearchCr iteria();"  alt="Rese t"/></td>
  511                                                                </tr
  512                                                                </ta ble>  
  513                                                    </div >                       
  514                                          <div  id="suppo rtingText" >
  515                                             < div id="da teRange">
  516                                                    <h1>T ransaction s - <%= fr omDatePara m %> to <% = toDatePa ram %></h1 >
  517                                                  </div>
  518                                                 <div id= "navigatio n">
  519                                                 <table b order="0"  cellspacin g="0">
  520                                                  <tr>
  521                                                               <td>< input id=" vcrRewind"  type="but ton" style ="width:25 ;height:20 ;display:i nline" val ue="&lt&lt " onclick= "firstPage ();" alt=" First Page "/></td>
  522                                     <td><inpu t id="vcrP revPage" t ype="butto n" style=" width:25;h eight:20;d isplay:inl ine" value ="|&lt" on click="pre viousPage( );" alt="P revious Pa ge"/></td>
  523                                                           <td><inpu t id="vcrN extPage" t ype="butto n" style=" width:25;h eight:20;d isplay:inl ine" value ="&gt|" on click="nex tPage();"  alt="Next  Page"/></t d>
  524                                                      </t r>
  525                                                 </table>
  526                                                </div> 
  527                                            <! -- start o f inner wr ap, 7-15-0 9 -->       
  528                                           <di v class="i nnerwrap">  
  529                                            <t able>
  530                                                  <tr>
  531                                                       <t h>Date and  Time</th>
  532                                                       <t h>Time on  ViX (msec) </th>
  533                                                       <t h>ICN</th>
  534                                                       <t h>Query Ty pe</th>
  535                                                       <t h>Query Fi lter</th>
  536                                                       <t h>Asynchro nous?</th>
  537                                                       <t h>Items Re turned</th >
  538                                                       <t h>Items Re ceived</th >
  539                                                       <t h>Bytes Re turned</th >
  540                                                       <t h>Bytes Re ceived</th >
  541                                                       <t h>Throughp ut (KB/sec )</th>
  542                                                       <t h>Quality< /th>
  543                                                       <t h>Command  Class Name </th>
  544                                                       <t h>Originat ing IP Add ress</th>
  545                                                       <t h>User</th >
  546                                                       <t h>Item in  cache?</th >
  547                                                       <t h>Error Me ssage</th>
  548                                                       <t h>Modality </th>
  549                                                       <t h>Purpose  of Use</th >
  550                                                       <t h>Datasour ce Protoco l</th>
  551                                                       <t h>Response  Code</th>           
  552                                                       <t h>Realm Si te Number< /th>                                 
  553                                                       <t h>URN</th>
  554                             <th>Tr ansaction  Number</th >
  555                             <th>Vi x Software  Version</ th>
  556                             <th>Vi stA Login  Method</th >
  557                             <th>Cl ient Versi on</th>
  558                             <th>Da ta Source  Method</th >
  559                             <th>Da ta Source  Version</t h>
  560                             <th>Da ta Source  Response S erver</th>
  561                             <th>VI X Site Num ber</th>
  562                             <th>Re questing V IX Site Nu mber</th>
  563                             <%
  564                                      if(debug )
  565                                      {
  566                                               out.print( "<th>Threa d ID</th>" );
  567                                               out.print( "<th>Debug  Informati on</th>");                                            
  568                                      }
  569                              %>
  570                                                  </tr>
  571                                               <log:Trans actionLog 
  572                                                       st artDate="< %= fromDat e %>"
  573                                                       en dDate="<%=  toDate %> "
  574                                                       qu ality="<%=  imageQual ity %>"
  575                                                       us er="<%= us er %>"
  576                                                       mo dality="<% = modality  %>"
  577                                                       da tasourcePr otocol="<% = datasour ceProtocol  %>"
  578                                                       er rorMessage ="<%= erro rMessage % >"
  579                                                       tr ansactionI d="<%= tra nsactionId   %>"
  580                                                       im ageUrn="<% = imageUrn  %>"
  581                                                       st artIndex=" <%= startI ndex %>"
  582                                                       en dIndex="<% = endIndex  %>"
  583                                                       fo rward="<%=  forwardIt eration %>
  584                                                       em ptyResultM essage="No  transacti on log ent ries."
  585                                                       by teTransfer Path="<%=  byteTransf erPath %>" >
  586                                                       <l og:Transac tionLogEnt ries>
  587                                                                <tr>
  588                                                                         <log:T ransaction LogEntry>
  589                                                                                  <td><log :Transacti onLogEntry StartTime  dateFormat Pattern="M M/dd/yyyy  hh:mm:ss a "/>&nbsp;< /td>
  590                                                                                  <td><log :Transacti onLogEntry ElapsedTim e/>&nbsp;< /td>
  591                                                                                  <td><log :Transacti onLogEntry PatientICN />&nbsp;</ td>
  592                                                                                  <td><log :Transacti onLogEntry QueryType/ >&nbsp;</t d>
  593                                                                                  <td><log :Transacti onLogEntry QueryFilte r/>&nbsp;< /td>
  594                                                                                  <td><log :Transacti onLogEntry Asynchrono usCommand/ >&nbsp;</t d>
  595                                                                                  <td><log :Transacti onLogEntry ItemCount/ >&nbsp;</t d>
  596                                                                                  <td><log :Transacti onLogEntry ReceivedCo unt/>&nbsp ;</td>
  597  
  598                                                                                  <!-- For  some reas on, below  test is no  longer wo rking. Res earch is i n progress ... 
  599                                                                                  <c:choos e>
  600                                                                                    <c:whe n test="${ byteTransf erPath ==  ByteTransf erPath.DS_ IN_FACADE_ OUT}">
  601                                                                                  <td><log :Transacti onLogEntry BytesTrans ferred byt eTransferT ype="<%= B yteTransfe rType.FACA DE_BYTES_S ENT %>"/>& nbsp;</td>
  602                                                                                      <td> <log:Trans actionLogE ntryBytesT ransferred  byteTrans ferType="< %= ByteTra nsferType. DATASOURCE _BYTES_REC EIVED %>"/ >&nbsp;</t d>
  603                                                                                      <td> <log:Trans actionLogE ntryImageT hroughput  byteTransf erType="<% = ByteTran sferType.F ACADE_BYTE S_SENT %>" />&nbsp;</ td>
  604                                                                                    </c:wh en>
  605                                                                                    <c:oth erwise>
  606                                                                                  <td><log :Transacti onLogEntry BytesTrans ferred byt eTransferT ype="<%= B yteTransfe rType.DATA SOURCE_BYT ES_SENT %> "/>&nbsp;< /td>
  607                                                                                      <td> <log:Trans actionLogE ntryBytesT ransferred  byteTrans ferType="< %= ByteTra nsferType. FACADE_BYT ES_RECEIVE D %>"/>&nb sp;</td>
  608                                                                                      <td> <log:Trans actionLogE ntryImageT hroughput  byteTransf erType="<% = ByteTran sferType.F ACADE_BYTE S_RECEIVED  %>"/>&nbs p;</td>
  609                                                                                    </c:ot herwise>
  610                                                                                  </c:choo se>
  611                                                                                  -->
  612                                                                                  <td><log :Transacti onLogEntry BytesTrans ferred byt eTransferT ype="<%= B yteTransfe rType.FACA DE_BYTES_S ENT %>"/>& nbsp;</td>
  613                                                                                      <td> <log:Trans actionLogE ntryBytesT ransferred  byteTrans ferType="< %= ByteTra nsferType. DATASOURCE _BYTES_REC EIVED %>"/ >&nbsp;</t d>
  614                                                                                      <td> <log:Trans actionLogE ntryImageT hroughput  byteTransf erType="<% = ByteTran sferType.F ACADE_BYTE S_SENT %>" />&nbsp;</ td>
  615  
  616                                                                                  <td><log :Transacti onLogEntry Quality/>& nbsp;</td>
  617                                                                                  <td><log :Transacti onLogEntry CommandCla ssName/>&n bsp;</td>
  618                                                                                  <td><log :Transacti onLogEntry Originatin gHost/>&nb sp;</td>
  619                                                                                  <td><log :Transacti onLogEntry User/>&nbs p;</td>
  620                                                                                  <td><log :Transacti onLogEntry CacheHit/> &nbsp;</td >
  621                                                                                  <td><log :Transacti onLogEntry ErrorMessa ge/>&nbsp; </td>
  622                                                                                  <td><log :Transacti onLogEntry Modality/> &nbsp;</td >
  623                                                                                  <td><log :Transacti onLogEntry PurposeOfU se/>&nbsp; </td>
  624                                                                                  <td><log :Transacti onLogEntry Datasource Protocol/> &nbsp;</td >
  625                                                                                  <td><log :Transacti onLogEntry ResponseCo de/>&nbsp; </td>                                                                          
  626                                                                                  <td><log :Transacti onLogEntry RealmSiteN umber/>&nb sp;</td>                                                                       
  627                                                                                  <td><log :Transacti onLogEntry URN/>&nbsp ;</td>
  628                                                                                  <td>
  629                                                                                           <% if(debu g) 
  630                                                                                           {
  631                                                                                                   %>
  632                                                                                                   <a  href="Vix LogViewTra nsaction.j sp?transac tionId=<lo g:Transact ionLogEntr yTransacti onID/>"><l og:Transac tionLogEnt ryTransact ionID/></a >
  633                                                                                                   <%
  634                                                                                           }
  635                                                                                           else
  636                                                                                           {
  637                                                                                           %>
  638                                                                                                   <l og:Transac tionLogEnt ryTransact ionID/>&nb sp;
  639                                                                                           <% 
  640                                                                                          
  641                                                                                           %>
  642                                                                                  </td>
  643                                                       <t d><log:Tra nsactionLo gEntryVixS oftwareVer sion/>&nbs p;</td>                                                  
  644                                                                                  <td><log :Transacti onLogEntry RemoteLogi nMethod/>& nbsp;</td>
  645                                                                                  <td><log :Transacti onLogEntry ClientVers ion/>&nbsp ;</td>
  646                                                                                  <td><log :Transacti onLogEntry DataSource Method/>&n bsp;</td>
  647                                                                                  <td><log :Transacti onLogEntry DataSource Version/>& nbsp;</td>
  648                                                                                  <td><log :Transacti onLogEntry DataSource ResponseSe rver/>&nbs p;</td>
  649                                                                                  <td><log :Transacti onLogEntry VixSiteNum ber/>&nbsp ;</td>
  650                                                                                  <td><log :Transacti onLogEntry Requesting VixSiteNum ber/>&nbsp ;</td>
  651                                                                                  <%
  652                                                                                           if(debug)
  653                                                                                           {
  654                                                                                                   %>
  655                                                                                                   <t d><log:Tra nsactionLo gEntryThre adId/>&nbs p;</td>
  656                                                                                                   <t d><log:Tra nsactionLo gEntryDebu gInformati on/>&nbsp; </td>
  657                                                                                                   <%
  658                                                                                           }
  659                                                                                   %>
  660                                                                         </log: Transactio nLogEntry>
  661                                                                </tr >
  662                                                       </ log:Transa ctionLogEn tries>
  663                                               </log:Tran sactionLog >   
  664                                      </table>
  665                                      
  666                                      <%
  667                                               try
  668                                               {
  669                                                       Si mpleDateFo rmat sdf =  new Simpl eDateForma t("MMMM d,  yyyy h:mm :ss.SSSS a  z");
  670                                                       Ca lendar now  = Calenda r.getInsta nce();
  671                                                       ou t.print("C urrent tim e on VIX:  " + sdf.fo rmat(now.g etTime())) ;
  672                                               }
  673                                               catch(Exce ption ex)  {}
  674                                       %>
  675                                      
  676                             </div>
  677                    </di v>
  678                    </fo rm>
  679                    </di v> <!-- en d of inner wrap, 7-15 -09 -->
  680  
  681                    <tab le border= "0" cellsp acing="0">
  682                             <tr>
  683                                      <td>
  684                                               <input id= "vcrRewind 2" type="b utton"
  685                                                       st yle="width : 25; heig ht: 20; di splay: inl ine" value ="&lt&lt"
  686                                                       on click="fir stPage();"  alt="Firs t Page" />
  687                                      </td>
  688                                      <td>
  689                                               <input id= "vcrPrevPa ge2" type= "button"
  690                                                       st yle="width : 25; heig ht: 20; di splay: inl ine" value ="|&lt"
  691                                                       on click="pre viousPage( );" alt="P revious Pa ge" />
  692                                      </td>
  693                                      <td>
  694                                               <input id= "vcrNextPa ge2" type= "button"
  695                                                       st yle="width : 25; heig ht: 20; di splay: inl ine" value ="&gt|"
  696                                                       on click="nex tPage();"  alt="Next  Page" />
  697                                      </td>
  698                             </tr>
  699                    </ta ble>
  700  
  701  
  702                    <c:c hoose>
  703                             <c:whe n test='<% = (Boolean )pageConte xt.getAttr ibute("has PreviousPa ge") == fa lse %>'>
  704                                      <script>
  705                                      document .all.vcrRe wind.disab led = 'dis abled';
  706                                      document .all.vcrPr evPage.dis abled = 'd isabled';
  707                                      document .all.vcrRe wind2.disa bled = 'di sabled';
  708                                      document .all.vcrPr evPage2.di sabled = ' disabled';
  709                                      </script >
  710                             </c:wh en>
  711                    </c: choose>
  712                    <c:c hoose>
  713                             <c:whe n test='<% = (Boolean )pageConte xt.getAttr ibute("has NextPage")  == false  %>'>
  714                                      <script>
  715                                      document .all.vcrNe xtPage.dis abled = 'd isabled';
  716                                      document .all.vcrNe xtPage2.di sabled = ' disabled';
  717                                      </script >
  718                             </c:wh en>
  719                    </c: choose>      
  720                    <div  id="pageF ooter">
  721                             <jsp:i nclude flu sh="false"  page="../ footer.htm l"></jsp:i nclude>
  722                    </di v>           
  723         <scr ipt src=". ./script/b oxover.js" ></script>
  724           </ body>
  725   </html>