Git cleanup.
This commit is contained in:
parent
3937236341
commit
324f5b1005
142 changed files with 0 additions and 204 deletions
66
rss/google-rss-examples/README.txt
Normal file
66
rss/google-rss-examples/README.txt
Normal file
|
@ -0,0 +1,66 @@
|
|||
Google RSS Tag Library Examples README
|
||||
======================================
|
||||
|
||||
|
||||
Overview
|
||||
========
|
||||
|
||||
This README file describes the Google RSS Tag Library Examples web
|
||||
application.
|
||||
|
||||
This web application contains a collection of examples demonstrating the
|
||||
usage of the Google JSP RSS Tag Library. For more information about using
|
||||
the custom tag library in your own web applications, please refer to the
|
||||
Google RSS Tag Library documentation.
|
||||
|
||||
The Google RSS Tag Library is an extension to the Google Tag Library, which
|
||||
can be found at:
|
||||
|
||||
<http://google-taglib.sourceforge.net/>
|
||||
|
||||
See the "LICENSE.txt" file for licensing details.
|
||||
|
||||
The Google RSS Tag Library uses the Google Web APIs, but is not associated
|
||||
with or sponsored by Google, Inc.
|
||||
|
||||
|
||||
Google Web APIs
|
||||
===============
|
||||
|
||||
The Google Web APIs Java library is required in order to use the Examples web
|
||||
application. The library's JAR file (googleapi.jar) should be placed into the
|
||||
application's WEB-INF/lib directory.
|
||||
|
||||
http://www.google.com/apis/download.html
|
||||
|
||||
You must also register with Google (free) in order to obtain a license key.
|
||||
The license key is required to access Google's Web Services.
|
||||
|
||||
https://www.google.com/accounts/NewAccount
|
||||
|
||||
|
||||
Google License Key
|
||||
==================
|
||||
|
||||
The license key can be specified as a context parameter in the web
|
||||
application deployment descriptor (web.xml) as follows:
|
||||
|
||||
<context-param>
|
||||
<param-name>google_key</param-name>
|
||||
<param-value>000000000000000000000000</param-value>
|
||||
</context-param>
|
||||
|
||||
The license key can also be temporarily specified from the index page of
|
||||
the web application.
|
||||
|
||||
|
||||
Examples
|
||||
========
|
||||
|
||||
The following example is included:
|
||||
|
||||
- Perform a simple Google RSS search
|
||||
|
||||
|
||||
===========================================================================
|
||||
$Id$
|
42
rss/google-rss-examples/WEB-INF/web.xml
Normal file
42
rss/google-rss-examples/WEB-INF/web.xml
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
|
||||
<web-app>
|
||||
<display-name>google-rss-examples</display-name>
|
||||
<description>Google RSS Examples Web Application</description>
|
||||
<context-param>
|
||||
<param-name>google_key</param-name>
|
||||
<param-value/>
|
||||
<description>The Google Web APIs client authorization key.</description>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>google_proxy_host</param-name>
|
||||
<param-value/>
|
||||
<description>The host to use as an HTTP proxy.</description>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>google_proxy_port</param-name>
|
||||
<param-value/>
|
||||
<description>The port to use as an HTTP proxy.</description>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>google_proxy_username</param-name>
|
||||
<param-value/>
|
||||
<description>The username required for the HTTP proxy.</description>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>google_proxy_password</param-name>
|
||||
<param-value/>
|
||||
<description>The password required for the HTTP proxy.</description>
|
||||
</context-param>
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.html</welcome-file>
|
||||
</welcome-file-list>
|
||||
<taglib>
|
||||
<taglib-uri>/google-taglib</taglib-uri>
|
||||
<taglib-location>/WEB-INF/google.tld</taglib-location>
|
||||
</taglib>
|
||||
<taglib>
|
||||
<taglib-uri>/google-rss-taglib</taglib-uri>
|
||||
<taglib-location>/WEB-INF/google-rss.tld</taglib-location>
|
||||
</taglib>
|
||||
</web-app>
|
71
rss/google-rss-examples/index.html
Normal file
71
rss/google-rss-examples/index.html
Normal file
|
@ -0,0 +1,71 @@
|
|||
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Google RSS Tag Library Examples</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<style type="text/css">
|
||||
<!--
|
||||
body {font-family:arial,sans-serif}
|
||||
-->
|
||||
</style>
|
||||
</head>
|
||||
<!--
|
||||
Copyright (c) 2003-2004, Erik C. Thauvin
|
||||
All rights reserved.
|
||||
-->
|
||||
<body bgcolor="#FFFFFF" text="#000000">
|
||||
<b><font size="+2">Google RSS Tag Library Examples</font></b>
|
||||
<p>
|
||||
This is a collection of examples demonstrating the usage of the <a href="http://google-taglib.sourceforge.net">Google RSS JSP Tag Library</a>.
|
||||
</p>
|
||||
<p>
|
||||
The Google RSS Tag Library is an extension to the <a href="http://google-taglib.sourceforge.net">Google Tag Library</a>.
|
||||
</p>
|
||||
<p>
|
||||
The Google Web APIs Java library is required in order to use the Google RSS Tag
|
||||
Library. The library's JAR file (<code>googleapi.jar</code>) should be placed
|
||||
into the application's <code>WEB-INF/lib</code> directory.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="http://www.google.com/apis/download.html"><b>Download the Google Web
|
||||
APIs developer's kit</b></a>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
You must also register with Google (free) in order to obtain a license key. The
|
||||
license key is required to access Google's Web Services.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://www.google.com/accounts/NewAccount"><b>Sign up for a Google
|
||||
account</b></a>
|
||||
</ul>
|
||||
<p>
|
||||
The license key can be specified as a context parameter in the web application
|
||||
deployment descriptor (<code>web.xml</code>) as follows:
|
||||
</p>
|
||||
<blockquote>
|
||||
<pre><context-param><br> <param-name>google_key</param-name><br> <param-value>000000000000000000000000</param-value><br></context-param></pre>
|
||||
</blockquote>
|
||||
<p>
|
||||
The license key can also be temporarily specified using the following:
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="key.html"><b>Set the Google Web APIs license key</b></a>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
The included examples will allow you to:
|
||||
</p>
|
||||
<ul>
|
||||
<li> <a href="search.html"><b>Perform a simple Google RSS search</b></a></li>
|
||||
</ul>
|
||||
<p> </p>
|
||||
<p>
|
||||
<small>The Google RSS Tag Library uses the Google Web APIs, but is not associated with or sponsored by Google, Inc.<br>
|
||||
Click <a href="LICENSE.txt">here</a> for licensing information.</small>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
16
rss/google-rss-examples/key.html
Normal file
16
rss/google-rss-examples/key.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Set Google Key</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
</head>
|
||||
<!--
|
||||
Copyright (c) 2002-2004, Erik C. Thauvin
|
||||
All rights reserved.
|
||||
-->
|
||||
<body bgcolor="#FFFFFF" text="#000000">
|
||||
<form action="key.jsp" method="post">
|
||||
<input size="35" name="key" value=""> <input type="submit" value="Set Google Key" name="btnG">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
21
rss/google-rss-examples/key.jsp
Normal file
21
rss/google-rss-examples/key.jsp
Normal file
|
@ -0,0 +1,21 @@
|
|||
<%
|
||||
// Copyright (c) 2002-2004, Erik C. Thauvin
|
||||
// All rights reserved.
|
||||
|
||||
String key = request.getParameter("key");
|
||||
|
||||
if ((key != null)&& (key.trim().length() > 0))
|
||||
{
|
||||
pageContext.setAttribute("google_key", key, PageContext.APPLICATION_SCOPE);
|
||||
%>
|
||||
<%@include file="search.html"%>
|
||||
<%
|
||||
}
|
||||
else
|
||||
{
|
||||
%>
|
||||
<%@include file="key.html"%>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
1
rss/google-rss-examples/rss.jsp
Normal file
1
rss/google-rss-examples/rss.jsp
Normal file
|
@ -0,0 +1 @@
|
|||
<%@ page contentType="text/xml" %><%@ taglib uri="/google-taglib" prefix="google" %><%@ taglib uri="/google-rss-taglib" prefix="rss" %><google:search/><rss:searchResults/>
|
16
rss/google-rss-examples/search.html
Normal file
16
rss/google-rss-examples/search.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Search Google</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
</head>
|
||||
<!--
|
||||
Copyright (c) 2002-2004, Erik C. Thauvin
|
||||
All rights reserved.
|
||||
-->
|
||||
<body bgcolor="#FFFFFF" text="#000000">
|
||||
<form action="rss.jsp" method="get">
|
||||
<input type="hidden" name="maxResults" value="5"><input maxLength="255" size="35" name="q" value=""> <input type="submit" value="Google RSS Search" name="btnG">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue