Hi will,
you can use the file same way in any JSP page.
syntax :
<%@include file="/Utility/JS/test.inc"%>
or you can also change the file extension to "test.js" {netscape style}
<%@include file="test.js"%>

cheers!
ashish

----- Original Message -----
From: "Kwan, William" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 26, 2001 4:14 PM
Subject: including files in jsp


> Hi,
>
> Is it possible to include a file in your jsp without having to use
> out.println statements??
> I would like to include some javascript to the output page but I dont want
> to type it in all my jsps??
>
> Something like vbscript <!--INCLUDE FILE="test.inc"-->  Is there an
> equivalent in jsp??
>
> talk to you later,
> Will
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to