betweenGo

Get JSTL Vars from PageContext

by Frank Kim on May.04, 2009, under JSTL

JSTL sets its vars in the pageContext.  For example:

pageContext.setAttribute("foo", bar);

Therefore to get a JSTL variable use the pageContext within a tag or a JSP page.  For example:

// get item from pageContext and put in request
atg.servlet.DynamoHttpServletRequest drequest = atg.servlet.ServletUtil.getDynamoRequest(request);
drequest.setParameter("foo", pageContext.getAttribute("foo"));


  • Share/Bookmark

Related posts:

  1. JSP Dynamo Request Retrieval
  2. Accessing RepositoryItems with JSTL
  3. JSTL for current URI
  4. Display formatted HTML text
  5. Getting the request parameter

:, ,

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!