public class AbcBean
public void setRequest(final HttpServletRequest value)
public void setFilter(final String value)
// --------------------
<jsp:useBean id="bean" class="net.btmx.mboee.AbcBean" scope="page"/>
<jsp:setProperty name="bean" property="request" value="${pageContext.request}"/>
<jsp:setProperty name="bean" property="filter" value="${param.f}"/>
<c:set var="data" value='${bean.data}' /> |
public class AbcBean
public void setRequest(final HttpServletRequest value)
public void setFilter(final String value)
// --------------------
<jsp:useBean id="bean" class="net.btmx.mboee.AbcBean" scope="page"/>
<jsp:setProperty name="bean" property="request" value="${pageContext.request}"/>
<jsp:setProperty name="bean" property="filter" value="${param.f}"/>
<c:set var="data" value='${bean.data}' />
@WebListener
public class AppListener implements ServletContextListener
public void contextInitialized(final ServletContextEvent sce)
var context = sce.getServletContext()
context.setAttribute("appBean", new AppBean);
// --------------------
<c:set var="app" value="${applicationScope['appBean']}"/> |
@WebListener
public class AppListener implements ServletContextListener
public void contextInitialized(final ServletContextEvent sce)
var context = sce.getServletContext()
context.setAttribute("appBean", new AppBean);
// --------------------
<c:set var="app" value="${applicationScope['appBean']}"/>