H
harryos
hi
in my jsp page I want to access a parameter value given in web.xml
<html>
<jsp:include page="<%=application.getInitParameter("external-include")
%>"/>
<body>
....
</body>
</html>
where web.xml has
<context-param>
<param-name>external-include</param-name>
<param-value>WEB-INF/jspf/header_tag.jsp</param-value>
</context-param>
When i run the jsp page in tomcat i get an error >>
/includebyparam.jsp(6,22) Attribute value application.getInitParameter
("external-include") is quoted with " which must be escaped when used
within the value.
Is there something wrong with the way i coded it? Can someone help me
correct it
thanks
harry
in my jsp page I want to access a parameter value given in web.xml
<html>
<jsp:include page="<%=application.getInitParameter("external-include")
%>"/>
<body>
....
</body>
</html>
where web.xml has
<context-param>
<param-name>external-include</param-name>
<param-value>WEB-INF/jspf/header_tag.jsp</param-value>
</context-param>
When i run the jsp page in tomcat i get an error >>
/includebyparam.jsp(6,22) Attribute value application.getInitParameter
("external-include") is quoted with " which must be escaped when used
within the value.
Is there something wrong with the way i coded it? Can someone help me
correct it
thanks
harry