From: <bra...@us...> - 2009-07-18 00:38:12
|
Revision: 2781 http://archive-access.svn.sourceforge.net/archive-access/?rev=2781&view=rev Author: bradtofel Date: 2009-07-18 00:38:09 +0000 (Sat, 18 Jul 2009) Log Message: ----------- FEATURE(ACC-56): new OpenSearch RSS query .jsp implementations. Added Paths: ----------- branches/wayback-1_4_2/wayback-webapp/src/main/webapp/WEB-INF/exception/OpenSearchError.jsp Added: branches/wayback-1_4_2/wayback-webapp/src/main/webapp/WEB-INF/exception/OpenSearchError.jsp =================================================================== --- branches/wayback-1_4_2/wayback-webapp/src/main/webapp/WEB-INF/exception/OpenSearchError.jsp (rev 0) +++ branches/wayback-1_4_2/wayback-webapp/src/main/webapp/WEB-INF/exception/OpenSearchError.jsp 2009-07-18 00:38:09 UTC (rev 2781) @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?><%@ + page language="java" pageEncoding="utf-8" contentType="text/xml;charset=utf-8" +%><%@ + page import="org.archive.wayback.exception.WaybackException" +%><%@ + page import="org.archive.wayback.core.UIResults" +%><%@ + page import="org.archive.wayback.util.StringFormatter" +%><% + +UIResults results = UIResults.extractException(request); +WaybackException e = results.getException(); +StringFormatter fmt = results.getWbRequest().getFormatter(); + +%> +<rss version="2.0" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/"> + <channel> + <title>Wayback OpenSearch Error</title> + <link>http://archive-access.sourceforge.net/projects/wayback</link> + <description>OpenSearch Error</description> + <openSearch:totalResults>1</openSearch:totalResults> + <openSearch:startIndex>1</openSearch:startIndex> + <openSearch:itemsPerPage>1</openSearch:itemsPerPage> + <item> + <title><%= UIResults.encodeXMLContent(fmt.format(e.getTitleKey())) %></title> + <description><%= UIResults.encodeXMLContent(fmt.format(e.getMessageKey())) %></description> + </item> + </channel> + </rss> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |