Examples of ModuleSupport


Examples of de.odysseus.calyxo.base.ModuleSupport

*/
public class AccessTag extends TagSupport {
  private String var;

  public int doEndTag() throws JspException {
    ModuleSupport modules = ModuleSupport.getInstance(pageContext);
    ModuleContext context = modules.getModuleContext(pageContext);
    HttpServletRequest request =
      (HttpServletRequest)pageContext.getRequest();

    AccessSupport support = AccessSupport.getInstance(context);
    request.setAttribute(var, support.create(request));
View Full Code Here

Examples of de.odysseus.calyxo.base.ModuleSupport

   * Get action attribute
   */
  protected String getActionAttribute() throws Exception {
    HttpServletRequest request =
      (HttpServletRequest)pageContext.getRequest();
    ModuleSupport support = ModuleSupport.getInstance(request);
    ModuleContext context = support.getModuleContext(request);
    StringBuffer buffer = new StringBuffer();
    buffer.append(request.getContextPath());
    buffer.append(context.getPath(action));
    return buffer.toString();
  }
View Full Code Here

Examples of de.odysseus.calyxo.base.ModuleSupport

   * Get href attribute
   */
  protected String getHrefAttribute() throws Exception {
    HttpServletRequest request =
      (HttpServletRequest)pageContext.getRequest();
    ModuleSupport support = ModuleSupport.getInstance(request);
    ModuleContext context = null;
    if (module == null) {
      context = support.getModuleContext(request);
    } else {
      context = support.getModuleContext(module);
    }
    StringBuffer buffer = new StringBuffer();
    buffer.append(request.getContextPath());
    buffer.append(context.getPath(action));

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.