Hi,

I think it means that you are using a servletrunner that is not able
to serve plain files (as a normal HTTP server does).

Try the servlet engine from JSDK 2.1, or other servlet-capable
HTTP server.
For developing I like smaller, free, Java-only servers - like
Jetty (www.mortbay.com), Vqserver (www.vqsoft.com),
Paperclips (tapsellferrier.co.uk) and lots of others..

Cezar.

On Tue, 15 Jun 1999, Popova, Marina wrote:

>  Hi, All!
>    I'm creating a form in a servlet, and I want to call a javascript f-n on
> Submit.
>    If I embed the function body directly into the servlet, like :
>
>    toClient.println("<SCRIPT LANGUAGE=\"JavaScript\">");
>    toClient.println("function validate(this) { ....");
>         ....
>    toClient.println("</SCRIPT");
>
>      --  everything works fine.
>
> But if I try to include this function from an external file, validate.js,
> like:
>       toClient.println("<SCRIPT LANGUAGE=\"JavaScript\"
> SRC=\"/absolute_path/validate.js></SCRIPT>");
>
>     I get an error 403: FORBIDDEN
>     Will not serve files, only servlets
>
>   Does it mean that I cannot refer from a servlet to an external file?
>
> Thanks,
> Marina
>
> ___________________________________________________________________________
> 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

Reply via email to