Ralph Einfeldt said:
Sorry, but that wouldn't help the original poster.
He is searching for a way to include taglib definitions
and imports that are used in the pages. Any kind of dynamic
include or decorators wouldn't achieve that.
Sorry, you're right, misread the original post.
Had it in
Sorry, but that wouldn't help the original poster.
Oh, Ralph, now you've gone and spoiled the fun. I was really enjoying this
thread.
He is searching for a way to include taglib definitions
and imports that are used in the pages. Any kind of dynamic
include or decorators wouldn't achieve
Hello folks, i´d like to build a default jsp header to all my
jsp´page, in this header i would put all taglibs and imports i need, but i
in doubt about which is the best way to do it. Sould i make all others page
extends this header page or do a @ page import in every page? Any idea?
I use
jsp:include page=header.jsp flush=true /
HTH.
Adam.
On Wed, 2004-03-24 at 14:46, Edson Alves Pereira wrote:
Hello folks, id like to build a default jsp header to all my
jsppage, in this header i would put all taglibs and imports i need, but i
in doubt about which is the best way
Or you can specify a prelude.jspf file in your web.xml (I think this may
only work with servlet spec 2.4 servers)
(The prelude is added to the top of the file, the coda is added to the
end of the file)
jsp-config
jsp-property-group
display-nameallFiles/display-name
It depends what you are trying to accomplish. If you are trying for common
functionality at the beginning of a page - it might be better to have a
custom tag at the beginnign of all your files which does the stuff you need.
Otherwise (IMO) - standard imports (@file include) stink. Only import
Users List
Objet : Re: JSP suggestion
Or you can specify a prelude.jspf file in your web.xml (I think this may
only work with servlet spec 2.4 servers)
(The prelude is added to the top of the file, the coda is added to the
end of the file)
jsp-config
jsp-property-group
display
. mars 2004 16:56
À : Tomcat Users List
Objet : Re: JSP suggestion
Or you can specify a prelude.jspf file in your web.xml (I think this may
only work with servlet spec 2.4 servers)
(The prelude is added to the top of the file, the coda is added to the
end of the file)
jsp-config
]
Sent: Wednesday, March 24, 2004 11:09 PM
To: Hertenstein Alain
Cc: Tomcat Users List
Subject: Re: RE : JSP suggestion
Also have a look at OpenSymphony's SiteMesh filter - it does just what
you're trying to do with your filter explanation here.
SiteMesh is VERY
good!
See http