my web xml:
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<include-prelude>/WEB-INF/headers/v2header.jsp</include-prelude>
</jsp-property-group>
</jsp-config>
file does exist in location
I get
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
org.apache.jasper.JasperException: /index.jsp(1,1) The absolute uri:
http://java.sun.com/jstl/xml cannot be resolved in either web.xml or the jar
files deployed with this application
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:334)
org.apache.jasper.compiler.Parser.addInclude(Parser.java:385)
org.apache.jasper.compiler.Parser.parse(Parser.java:130)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
I have been able to get it NOT to break the code but it seems to ignore the
file I want to include
Tim Funk wrote:
>
> Look at projects such as tiles.
>
> An alternative is to use jsp preludes. Which allow you to add stuff to
> the beginning or end of all jsp pages.
>
> For example: put this in web.xml:
> <jsp-config>
> <jsp-property-group>
> <url-pattern>*.jsp</url-pattern>
> <include-prelude>/WEB-INF/prelude1.jspf</include-prelude>
> </jsp-property-group>
> </jsp-config>
>
>
> -Tim
>
> coder5436uk wrote:
>> I have an install of tomcat and I wish to add a default header and footer
>> to
>> each page, any one know how to do this ?
>>
>> I am running files which come out with simple text, I want to include
>> them
>> all in a site template without having to change the code in each page.
>>
>>
>> eg.
>>
>> simple page
>>
>> <%= hello %>
>>
>>
>> will out put the java variable "hello" on a blank page, I want to
>> simulate
>> the code
>>
>>
>> <%@ include file="header.html" %>
>>
>> <%= hello %>
>>
>> <%@ include file="header.html" %>
>>
>> without having to put the JSP include in every page
>> I would appreciate some help on how to do this within the tomcat config
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: [email protected]
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Tomcat-adding-files-tf3999518.html#a11390634
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]