예제 #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);
  }