result = new HashMap<>();
+ String validationError = doValidate(input);
+ if (StringUtils.isNotBlank(validationError)) {
+ result.put("key", key);
+ result.put("message", validationError);
+ }
+ return result;
+ }
+
+ protected String doValidate(String input) {
+ if (required && StringUtils.isBlank(input)) {
+ return displayName + " must not be blank.";
+ }
+ return null;
+ }
+
+ public String getKey() {
+ return key;
+ }
+}
\ No newline at end of file
diff --git a/src/main/resources/task.template.html b/src/main/resources/task.template.html
new file mode 100644
index 0000000..f7cbd1c
--- /dev/null
+++ b/src/main/resources/task.template.html
@@ -0,0 +1,20 @@
+
+
+
+
+
+ {{ GOINPUTNAME[script].$error.server }}
+ {{ GOINPUTNAME[cpuArch].$error.server }}
+
+
+
\ No newline at end of file