Package ch.entwine.weblounge.common.site

Examples of ch.entwine.weblounge.common.site.Action


   * @return the corresponding <code>int</code> to skip or include the tag body
   * @see javax.servlet.jsp.tagext.Tag#doStartTag()
   */
  public int doStartTag() throws JspException {
    super.doStartTag();
    Action handler = (Action) request.getAttribute(WebloungeRequest.ACTION);
    stashAndSetAttribute(ActionCheckTagVariables.ACTION, handler);
    if (skip(handler)) {
      return SKIP_BODY;
    }
    return EVAL_BODY_INCLUDE;
View Full Code Here


   * @param request
   *          the request
   * @return true if an action is found as request attribute
   */
  public static boolean containsAction(WebloungeRequest request) {
    Action action = (Action) request.getAttribute(WebloungeRequest.ACTION);
    return action != null;
  }
View Full Code Here

  @Override
  public Action[] getActions() {
    List<Action> actions = new ArrayList<Action>();
   
    // HTML greeter action
    Action greeterHTMLAction = new GreeterHTMLAction();
    greeterHTMLAction.setIdentifier("greeter.html");
    greeterHTMLAction.setPath("greeting");
    greeterHTMLAction.setModule(this);
    greeterHTMLAction.setSite(getSite());
    actions.add(greeterHTMLAction);

    // XML greeter action
    Action greeterXMLAction = new GreeterXMLAction();
    greeterXMLAction.setIdentifier("greeter.xml");
    greeterXMLAction.setPath("greeting");
    greeterXMLAction.setModule(this);
    greeterXMLAction.setSite(getSite());
    actions.add(greeterXMLAction);

    // XML greeter action
    Action greeterJSONAction = new GreeterJSONAction();
    greeterJSONAction.setIdentifier("greeter.json");
    greeterJSONAction.setPath("greeting");
    greeterJSONAction.setModule(this);
    greeterJSONAction.setSite(getSite());
    actions.add(greeterJSONAction);

    return actions.toArray(new Action[actions.size()]);
  }
View Full Code Here

TOP

Related Classes of ch.entwine.weblounge.common.site.Action

Copyright © 2018 www.massapicom. 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.