To make html files work you need to save them in a different directory than
your servlets. Any directory will do. I am using Tomcat for development
and I save HTML forms in the directory
/tomcat/webapps/root/forms.
Then to see them I just go to http://localhost:8080/forms/whatever.html
You could configure it any other way you see fit.
William J Ortiz
Information Analyst Associate
XGAF - Metered Supplies
e-mail: [EMAIL PROTECTED]
-----Original Message-----
From: S.A.Pamungkas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 01, 2000 3:21 AM
To: [EMAIL PROTECTED]
Subject: will not serve files, only servlet
I'm using JSDK2.0.
Putting the html file in the same directory with the
servlet file. For example : /home/me/SERVLETDIR/
Then running the servlet runner from that directory.
When I run servlet file from browser, for example by
typing http://localhost:8080/servlet/myservlet,
servlet working good.
But when I try to run the html or applet file from
browser, for example by typing :
http://localhost:8080/myservlet.html, there was an
error like this :
" 403 Forbidden
Will not serve files, only servlets "
Please somebody help me.
Thankyou in advance.
- pamungkas-
__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.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
___________________________________________________________________________
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