Я пытаюсь включить jsp-файл, используя специальный taglib. У меня есть все настройки taglib на месте, но он показывает инструкцию include вместо содержимого jsp.Как включить файл jsp с помощью пользовательского taglib?
public int doStartTag() throws JspException {
JspWriter out = pageContext.getOut();
StringBuffer sb = new StringBuffer();
if (section != null && !section.isEmpty()) {
sb.append("<%@ include file=\"defaultHeader.jsp\" %>");
}
try {
out.println(sb.toString());
} catch (IOException e) {
log.error("Failed to generate the tag", e);
e.printStackTrace();
}
return super.doStartTag();
Я действительно знаком с taglibs, поэтому любая помощь приветствуется. Благодаря
Спасибо, я просто понял это вне. – stillLearning