On Mon, 2003-12-08 at 11:53, Atreya Basu wrote: > The only problem with the include directive is that it actually outputs > the result of a jsp rather than just the text. What I want to do is have > some content in a another file, have the two file put together then > compiled.
I don't think this is true. The <jsp:include> action tag acts as you describe above, outputing its results during the request proccessing phase. http://java.sun.com/products/jsp/tags/syntaxref.fm11.html The <%@ include> directive includes the contents of the file before compilation. http://java.sun.com/products/jsp/tags/syntaxref.fm6.html#8772 dave > > Is there a way to do that I wonder? > > Michele Emmi wrote: > > > Try: > > > > <%@ include file="..." %> > > > > Michele > > > > > >> From: Atreya Basu <[EMAIL PROTECTED]> > >> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> > >> To: Tomcat Users List <[EMAIL PROTECTED]> > >> Subject: directive.include problem > >> Date: Mon, 08 Dec 2003 12:24:06 -0400 > >> > >> Hello, > >> > >> I'm getting a weird error when using <jsp:directive.include file=".." > >> />. > >> > >> I get an jsp.error.badaction error. > >> > >> I don't know maybe I'm using the the directive incorrectly. What I am > >> trying to do is make my JSPs cleaner by moving some of the header and > >> footer code onto a different file. Since I use the same header and > >> footer code, I thought that I could use the directive.include > >> element. But no luck. > >> > >> Any help? > >> > >> -- > >> _____________________________________ > >> Atreya Basu > >> Developer, > >> Greenfield Research Inc. > >> e-mail: atreya (at) greenfieldresearch (dot) ca > >> > >> > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > > > > _________________________________________________________________ > > Cell phone ‘switch’ rules are taking effect — find out more here. > > http://special.msn.com/msnbc/consumeradvocate.armx > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > _____________________________________ > Atreya Basu > Developer, > Greenfield Research Inc. > e-mail: atreya (at) greenfieldresearch (dot) ca > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]