copy the html file in to public html file directory
of your java web server.(if you r using any other
server copy in your html files into html directory
of that server)
sashidhars
--- Kevin Yancy <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I wrote a class that will open a static HTML file
> and return
>
> the <BODY> portion in various formats. The idea is
> that a
> servlet could use this class to get all or a portion
> of it's
>
> content from static HTML files.
>
> This works, but only if I provide the full path on
> the local
>
> file system where the servlet resides. This of
> course won't
> get it. The static HTML files will always be in a
> subdirectory of where the servlet that accesses them
> resides
>
> (i.e. /myServletDir/content).
>
> How can I determine where the servlet was actually
> loaded so
>
> that I can access the files in the "content" subdir
> by a
> relative pathname?
>
> Apologize in advance if this is a dumb question. I
> checked
> the archives but couldn't find the answer :-)
>
> thanx
> Kevin
>
>
___________________________________________________________________________
> 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
>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
___________________________________________________________________________
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