This class is intended to be used in the context of web presentation layer technologies such as JSP or Velocity.
99100101102103104105106107108109
rl = Boolean.valueOf(resolveLinks).booleanValue(); } // we trust the 'uri' attribute to be != null, because it is specified // as required attribute in the TLD NamespaceBean namespace = StrutsTagUtils.findNamespace(this, pageContext); node = getNode(namespace, uri, rl); return super.doStartTag(); }
220221222223224225226227228229230
* @param domain the bean representing the domain * @param name the name of the namespace */ protected NamespaceBean getNamespace(DomainBean domain, String name) { NamespaceBean bean = null; if (name == null) { // look for a 'namespace' context parameter, and use its value // as namespace name if present ServletContext context = pageContext.getServletContext();
198199200201202203204205206207208209210211
* * @return NamespaceBean representing the requested namespace */ public NamespaceBean getNamespace(String name) { NamespaceBean bean = null; NamespaceAccessToken token = Domain.accessNamespace(new SecurityToken(this), name); if (token != null) { bean = new NamespaceBean(token, st); } return bean; }