示例#1
0
文件: JspViewer.java 项目: banyue/cat
  @Override
  protected String getJspFilePath(Context ctx, Model model) {
    Action action = model.getAction();

    switch (action) {
      case VIEW:
        return JspFile.VIEW.getPath();
    }

    throw new RuntimeException("Unknown action: " + action);
  }
示例#2
0
文件: JspViewer.java 项目: haiger/cat
  @Override
  protected String getJspFilePath(Context ctx, Model model) {
    Action action = model.getAction();

    switch (action) {
      case COUNT_API:
      case AVG_API:
      case SUM_API:
      case BATCH_API:
        return JspFile.VIEW.getPath();
      default:
        break;
    }

    throw new RuntimeException("Unknown action: " + action);
  }