def initialize(properties={})
jstl_ver = properties[:jstl] || Config::PROPERTY_JSTL
super(jstl_ver < 1.2 ? JSTL11_EMBED_PATTERNS : JSTL12_EMBED_PATTERNS, properties)
@jstl_ver = jstl_ver
unless self.header
sb = ''
if charset = properties[:charset]
sb << "<%@ page contentType=\"text/html; charset=#{charset}\" %>" << @nl
else
end
if @jstl_ver < 1.2
sb << '<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>' << @nl
else
sb << '<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>' << @nl
sb << '<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>' << @nl
end
self.header = sb
end
end