@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); }
@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); }