Hello Richard,

what was written by Albert about <title> tag is absolutely correct.
I used a couple of methods to retrieve html file and parse <title>
content from it: read HTML file to StringBuffer instance and then
parsing title out of it using methods of String class.

Regards,
Max

RY> Does anyone know how to retrieve the title of an HTML document?  The title
RY> does not appear to be among the headers that are returned by
RY> getHeaderNames() or getHeader().  I'd like to be able to just get the title
RY> of a document without having to parse the data returned from the HTTP HEAD
RY> or GET commands.

RY> Regards,

RY> Richard

RY> ___________________________________________________________________________
RY> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
RY> of the message "signoff SERVLET-INTEREST".

RY> Archives: http://archives.java.sun.com/archives/servlet-interest.html
RY> Resources: http://java.sun.com/products/servlet/external-resources.html
RY> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



--
Best regards,
 Maxim                            mailto:[EMAIL PROTECTED]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to