Variable für Include setzen

  • Beitrags-Autor:
  • Beitrags-Kategorie:JavaEE

page.jsp:

<% pageContext.setAttribute("pageTitle", "Abcd"); %>
<jsp:directive.include file="header.jsp" />

header.jsp:

<title>${pageTitle}</title>

weiterlesen…
difference between includes
JSP include directive examples
sharing common jsp’s