Wen,

The JSP include directive (<%@ include file=... %>) can provide exactly the
functionality you appear to be looking for here.
Please take a look at the documentation for this command's function and
exact syntax.

-AMT

> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Wen B. Sun
> Sent: Tuesday, November 23, 1999 12:23 AM
> To: [EMAIL PROTECTED]
> Subject: Functions in JSP
>
>
> Hi,
>
> In my JSP, I have a combination of scriptlet and html code that I want
> to call in different places.  I don't want to copy and paste the same
> code all over the place to clutter my code.  Is there a way to define a
> function in JSP to contain this combination of scriptlet and html code?
> That way, I can just call this function in my JSP and avoid this messy
> copy and pasting.
>
> Thanks in advance.
>
> -Wen B. Sun
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to