From: <bra...@us...> - 2008-07-02 00:30:38
|
Revision: 2390 http://archive-access.svn.sourceforge.net/archive-access/?rev=2390&view=rev Author: bradtofel Date: 2008-07-01 17:30:47 -0700 (Tue, 01 Jul 2008) Log Message: ----------- MOVE: replay related .jsp files to /replay/ Added Paths: ----------- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/replay/Redirect.jsp trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/replay/ResultMeta.jsp Removed Paths: ------------- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/jsp/Redirect.jsp trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/jsp/ResultMeta.jsp Deleted: trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/jsp/Redirect.jsp =================================================================== --- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/jsp/Redirect.jsp 2008-07-02 00:25:51 UTC (rev 2389) +++ trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/jsp/Redirect.jsp 2008-07-02 00:30:47 UTC (rev 2390) @@ -1,14 +0,0 @@ -<%@ page import="org.archive.wayback.core.Timestamp" %> - -<% - String url = request.getParameter("url"); - String time = request.getParameter("time"); - - // Put time-mapping for this id, or if no id, the ip-addr. - String id = request.getHeader("Proxy-Id"); - if(id == null) id = request.getRemoteAddr(); - Timestamp.addTimestampForId(request.getContextPath(),id, time); - - // Now redirect to the page the user wanted. - response.sendRedirect(url); -%> Deleted: trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/jsp/ResultMeta.jsp =================================================================== --- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/jsp/ResultMeta.jsp 2008-07-02 00:25:51 UTC (rev 2389) +++ trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/jsp/ResultMeta.jsp 2008-07-02 00:30:47 UTC (rev 2390) @@ -1,125 +0,0 @@ -<%@ page language="java" pageEncoding="utf-8" contentType="text/html;charset=utf-8"%> -<%@ page import="java.util.Iterator" %> -<%@ page import="java.util.Map" %> -<%@ page import="org.archive.wayback.core.Timestamp" %> -<%@ page import="org.archive.wayback.core.UIResults" %> -<%@ page import="org.archive.wayback.replay.UIReplayResult" %> -<%@ page import="org.archive.wayback.util.StringFormatter" %> -<% - -UIReplayResult uiResults = (UIReplayResult) UIResults.getFromRequest(request); -StringFormatter fmt = uiResults.getFormatter(); - -String origUrl = uiResults.getOriginalUrl(); -String urlKey = uiResults.getUrlKey(); -String archiveID = uiResults.getArchiveID(); -Timestamp captureTS = uiResults.getCaptureTimestamp(); -String capturePrettyDateTime = fmt.format("MetaReplay.captureDateDisplay", - captureTS.getDate()); -String mimeType = uiResults.getMimeType(); -String digest = uiResults.getDigest(); -Map<String,String> headers = uiResults.getHttpHeaders(); - -%> -<html> - <head> - <title> - <%= fmt.format("MetaReplay.title") + urlKey +" / " + - capturePrettyDateTime %> - </title> - </head> - <body> - <h2> - <%= fmt.format("MetaReplay.title") %> - </h2> - <table> - <tr> - <td class="field-cell"> - <%= fmt.format("MetaReplay.originalURL") %> - </td> - <td class="value-cell"> - <b> - <%= origUrl %> - </b> - </td> - </tr> - <tr> - <td class="field-cell"> - <%= fmt.format("MetaReplay.URLKey") %> - </td> - <td class="value-cell"> - <b> - <%= urlKey %> - </b> - </td> - </tr> - <tr> - <td class="field-cell"> - <%= fmt.format("MetaReplay.captureDate") %> - </td> - <td class="value-cell"> - <b> - <%= capturePrettyDateTime %> - </b> - </td> - </tr> - <tr> - <td class="field-cell"> - <%= fmt.format("MetaReplay.archiveID") %> - </td> - <td class="value-cell"> - <b> - <%= archiveID %> - </b> - </td> - </tr> - <tr> - <td class="field-cell"> - <%= fmt.format("MetaReplay.MIMEType") %> - </td> - <td class="value-cell"> - <b> - <%= mimeType %> - </b> - </td> - </tr> - <tr> - <td class="field-cell"> - <%= fmt.format("MetaReplay.digest") %> - </td> - <td class="value-cell"> - <b> - <%= digest %> - </b> - </td> - </tr> - </table> - <p> - <h2> - <%= fmt.format("MetaReplay.HTTPHeaders") %> - </h2> - <table> - <% - Iterator<String> itr = headers.keySet().iterator(); - while(itr.hasNext()) { - String key = itr.next(); - String value = headers.get(key); - %> - <tr> - <td class="field-cell"> - <%= key %> - </td> - <td class="value-cell"> - <b> - <%= value %> - </b> - </td> - </tr> - <% - } - %> - </table> - - </body> -</html> - Copied: trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/replay/Redirect.jsp (from rev 2055, trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/jsp/Redirect.jsp) =================================================================== --- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/replay/Redirect.jsp (rev 0) +++ trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/replay/Redirect.jsp 2008-07-02 00:30:47 UTC (rev 2390) @@ -0,0 +1,14 @@ +<%@ page import="org.archive.wayback.core.Timestamp" %> + +<% + String url = request.getParameter("url"); + String time = request.getParameter("time"); + + // Put time-mapping for this id, or if no id, the ip-addr. + String id = request.getHeader("Proxy-Id"); + if(id == null) id = request.getRemoteAddr(); + Timestamp.addTimestampForId(request.getContextPath(),id, time); + + // Now redirect to the page the user wanted. + response.sendRedirect(url); +%> Copied: trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/replay/ResultMeta.jsp (from rev 2228, trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/jsp/ResultMeta.jsp) =================================================================== --- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/replay/ResultMeta.jsp (rev 0) +++ trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/replay/ResultMeta.jsp 2008-07-02 00:30:47 UTC (rev 2390) @@ -0,0 +1,125 @@ +<%@ page language="java" pageEncoding="utf-8" contentType="text/html;charset=utf-8"%> +<%@ page import="java.util.Iterator" %> +<%@ page import="java.util.Map" %> +<%@ page import="org.archive.wayback.core.Timestamp" %> +<%@ page import="org.archive.wayback.core.UIResults" %> +<%@ page import="org.archive.wayback.replay.UIReplayResult" %> +<%@ page import="org.archive.wayback.util.StringFormatter" %> +<% + +UIReplayResult uiResults = (UIReplayResult) UIResults.getFromRequest(request); +StringFormatter fmt = uiResults.getFormatter(); + +String origUrl = uiResults.getOriginalUrl(); +String urlKey = uiResults.getUrlKey(); +String archiveID = uiResults.getArchiveID(); +Timestamp captureTS = uiResults.getCaptureTimestamp(); +String capturePrettyDateTime = fmt.format("MetaReplay.captureDateDisplay", + captureTS.getDate()); +String mimeType = uiResults.getMimeType(); +String digest = uiResults.getDigest(); +Map<String,String> headers = uiResults.getHttpHeaders(); + +%> +<html> + <head> + <title> + <%= fmt.format("MetaReplay.title") + urlKey +" / " + + capturePrettyDateTime %> + </title> + </head> + <body> + <h2> + <%= fmt.format("MetaReplay.title") %> + </h2> + <table> + <tr> + <td class="field-cell"> + <%= fmt.format("MetaReplay.originalURL") %> + </td> + <td class="value-cell"> + <b> + <%= origUrl %> + </b> + </td> + </tr> + <tr> + <td class="field-cell"> + <%= fmt.format("MetaReplay.URLKey") %> + </td> + <td class="value-cell"> + <b> + <%= urlKey %> + </b> + </td> + </tr> + <tr> + <td class="field-cell"> + <%= fmt.format("MetaReplay.captureDate") %> + </td> + <td class="value-cell"> + <b> + <%= capturePrettyDateTime %> + </b> + </td> + </tr> + <tr> + <td class="field-cell"> + <%= fmt.format("MetaReplay.archiveID") %> + </td> + <td class="value-cell"> + <b> + <%= archiveID %> + </b> + </td> + </tr> + <tr> + <td class="field-cell"> + <%= fmt.format("MetaReplay.MIMEType") %> + </td> + <td class="value-cell"> + <b> + <%= mimeType %> + </b> + </td> + </tr> + <tr> + <td class="field-cell"> + <%= fmt.format("MetaReplay.digest") %> + </td> + <td class="value-cell"> + <b> + <%= digest %> + </b> + </td> + </tr> + </table> + <p> + <h2> + <%= fmt.format("MetaReplay.HTTPHeaders") %> + </h2> + <table> + <% + Iterator<String> itr = headers.keySet().iterator(); + while(itr.hasNext()) { + String key = itr.next(); + String value = headers.get(key); + %> + <tr> + <td class="field-cell"> + <%= key %> + </td> + <td class="value-cell"> + <b> + <%= value %> + </b> + </td> + </tr> + <% + } + %> + </table> + + </body> +</html> + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |