In the HTML that is generated, have a tag of JS. something like this.
<script language=JavaScript1.2 src="nameOfJS.js"></script>
This path is relative to the webFolder of your webserver, hope this Helps.
Ankur S Jain.
k a m l e s h
<[EMAIL PROTECTED] To: [EMAIL PROTECTED]
ET.IN> cc:
Sent by: "A mailing Subject: Javascript files!
list for discussion
about Sun
Microsystem's Java
Servlet API
Technology."
<SERVLET-INTEREST@JAV
A.SUN.COM>
12/15/01 08:55 PM
Please respond to "A
mailing list for
discussion about Sun
Microsystem's Java
Servlet API
Technology."
Hi,
I want to use separate file(.js) for my javaScripts functions
instead of of writing them in html output of a servlet.
where should i put these files so that i can access them with relative
URL ,i am able to acces them only if SRC is specified as full URL
i am using <jswdk-1.0.1>
thanx in advance
kamlesh
___________________________________________________________________________
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
-----------------------Disclaimer------------------------
The views of the author may not necessarily reflect those
of the Company. All liability is excluded to the extent
permitted by law for any claims arising as a result of the
use of this medium to transmit information by or to
IT Solutions (India) Pvt. Ltd.
We have taken precautions to minimize the risk of
transmitting software viruses, but we advise you to
carry out your own virus checks on any attachment to
this message. We cannot accept liability for any loss or
damage caused by software viruses.
------------------------Disclaimer------------------------
___________________________________________________________________________
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