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