public void executeTarget(RequestContext context,
            String target, String type) throws Exception {
        String targetKey = getActionKey(type, target);
        if (actions.containsKey(targetKey)) {
            actions.get(targetKey).execute(context);
            if (".do".equals(context.requestType())) {
                context.getResp().setStatus(HttpServletResponse.SC_OK);
                return;
            }
        }
        String templatePath = getTemplateName(type, target);
        if (TYPE_SCREEN.equals(type)) {
            if (context.isRedirected()) {
                if (TStringUtils.isNotEmpty(context.getRedirectTarget())) {
                    context.setTarget(context.getRedirectTarget());
                    context.setRedirectTarget(null);
                    context.setRedirectLocation(null);
                    executeTarget(context, context.getTarget(), type);
                } else {
                    context.getResp().sendRedirect(context.getRedirectLocation());
                }
            } else {
                if (!this.templates.containsKey(templatePath)) {
                    throw new TemplateNotFoundException(new StringBuilder(256)
                            .append("Invalid ").append(type)
                            .append(" template path:").append(templatePath).toString());
                }
                context.put(SCREEN_PLACEHOLDER, engine.renderTemplate(templatePath, context));
            }
        } else {
            String realTemplatePath = templatePath;
            if (!templates.containsKey(templatePath) && TYPE_LAYOUT.equals(type)) {
                realTemplatePath = getLayout(target);
            }
            if (realTemplatePath == null) {
                throw new TemplateNotFoundException(new StringBuilder(256).append("Invalid ")
                        .append(type).append(" template path:").append(templatePath).toString());
            }
            if (!realTemplatePath.equals(templatePath)) {
                String realTargetKey =
                        realTemplatePath.substring(0, realTemplatePath.indexOf(".vm"));
                if (actions.containsKey(realTargetKey)) {
                    actions.get(realTargetKey).execute(context);
                }
            }
            engine.renderTemplate(realTemplatePath, context, context.getResp().getWriter());
        }
    }
Execute required method service
@param context   the context
@param target    the target information
@param type      the operation type
@throws Exception the exception
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/master/web/simplemvc/RequestDispatcher.java