Maciek Żywno wrote:
hello

In my webapp in my jsp pages I repeat the same quite long piece of code:
<[EMAIL PROTECTED] import="...">
I wonder whether it is possible to put this piece of code in one place, like
somewhere in web.xml ..

You can put it in one file and use the import declaration to import it into all pages that needs it:

<%@ import file="/WEB-INF/common-stuff.jspf" %>

In JSP 2.0 (not released yet) you will be able to declare in web.xml
that a file like this should be added to a number of JSP pages without
having to add the imports in all pages.

Hans
--
Hans Bergsten                                <[EMAIL PROTECTED]>
Gefion Software                       <http://www.gefionsoftware.com/>
Author of O'Reilly's "JavaServer Pages", covering JSP 1.2 and JSTL 1.0
Details at                                    <http://TheJSPBook.com/>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com

Reply via email to