jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From catl...@apache.org
Subject cvs commit: jakarta-taglibs/scrape/xml scrape.xml
Date Wed, 19 Feb 2003 04:48:38 GMT
catlett     2003/02/18 20:48:38

  Modified:    scrape/xml scrape.xml
  Log:
  updated the documentation for the new header tag
  
  Revision  Changes    Path
  1.4       +62 -0     jakarta-taglibs/scrape/xml/scrape.xml
  
  Index: scrape.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/scrape/xml/scrape.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- scrape.xml	30 Apr 2002 21:54:01 -0000	1.3
  +++ scrape.xml	19 Feb 2003 04:48:38 -0000	1.4
  @@ -301,6 +301,68 @@
       </tag>
   
       <tag>
  +      <name>header</name>
  +      <tag-class>org.apache.taglibs.scrape.HeaderTag</tag-class>
  +      <body-content>JSP</body-content>
  +      <display-name>header</display-name>
  +       
  +      <description>
  +         Set an http header for the request.
  +      </description>
  +       
  +      <summary>
  +         Set an http header for the request.
  +      </summary>
  +      <availability>1.1</availability>
  +      <restrictions>Must be nested within a page tag</restrictions>
  + 
  +      <attribute>
  +        <name>name</name>
  +        <required>yes</required>
  +       	<rtexprval>no</rtexprval>
  +	<description>
  +	  The name of the http header to be sent in the http request.
  +	</description>
  +	<availability>1.1</availability>
  +      </attribute>
  +      
  +      <attribute>
  +       	<name>value</name>
  +	<required>no</required>
  + 	<rtexprval>no</rtexprval>
  +	<description>
  +	  The value of the http header to be sent in the http request.
  +	</description>
  +	<availability>1.1</availability>
  +      </attribute>
  +
  +      <example>
  +        <usage>
  +          <comment>
  +            Specify that the http request for the scrape set the User-Agent and
  +	    Referer headers.  The User-Agent is set using the name and value
  +	    attributes.  The Referer header is set using the name attribute and
  +	    the body of the header tag.
  +  	    Note that a header tag must be nested within the body of the page tag
  +          </comment>
  +          <code>   
  +<![CDATA[      
  +<scrp:page>
  +   <scrp:header name="User-Agent" value="mozilla/1.2"/>
  +   <scrp:header name="Referer">
  +       http://localhost:8080/scrape-examples/scrape.jsp
  +   </scrp:header>
  +   <scrp:url>http://finance.yahoo.com/q?s=SUNW</scrp:url>
  +   <scrp:scrape id="qt" begin="<table border=1" end="</table>" anchors="true"/>
  +</scrp:page>
  +]]>               
  +          </code>
  +       </usage>
  +      </example>
  +
  +    </tag>
  +    
  +    <tag>
         <name>scrape</name>
         <tag-class>org.apache.taglibs.scrape.ScrapeTag</tag-class>
         <body-content>JSP</body-content>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org


Mime
View raw message