Index: lams_tool_sbmt/conf/language/SbmtResources.properties =================================================================== diff -u -r1c31dbd6b844bffd77d86babab9592e8267cc462 -rc5e85c8b7a263c6a1fde5f01237638a8e3631677 --- lams_tool_sbmt/conf/language/SbmtResources.properties (.../SbmtResources.properties) (revision 1c31dbd6b844bffd77d86babab9592e8267cc462) +++ lams_tool_sbmt/conf/language/SbmtResources.properties (.../SbmtResources.properties) (revision c5e85c8b7a263c6a1fde5f01237638a8e3631677) @@ -108,33 +108,19 @@ submit.upload.twice=You already upload this file, please waiting for a while. submit.modenotsupported=The mode "{0}" you've requested is not supported submit.successful=The content has been created successfully. + # Errors learner.form.filepath.displayname=Upload file name -monitoring.mark.input.error=Invalidate input: {0} # -- standard errors -- errors.header= # -- validator -- -errors.invalid={0} is invalid. -errors.maxlength={0} can not be greater than {1} characters. -errors.minlength={0} can not be less than {1} characters. -errors.range={0} is not in the range {1} through {2}. errors.required={0} is required. -errors.byte={0} must be an byte. -errors.date={0} is not a date. -errors.double={0} must be an double. -errors.float={0} must be an float. -errors.integer={0} must be an integer. -errors.long={0} must be an long. -errors.short={0} must be an short. -errors.creditcard={0} is not a valid credit card number. -errors.email={0} is an invalid e-mail address. +errors.mark.invalid.number=Mark is invalid number format. # -- other -- -errors.cancel=Operation cancelled. -errors.detail={0} -errors.general=The process did not complete. Details should follow. -errors.token=Request could not be completed. Operation is not in sequence. errors.maxfilesize=The uploaded file has exceeded the maximum file size limit of {0} bytes -error.read.only.mode=Read only mode, function can not be finished \ No newline at end of file +error.read.only.mode=Read only mode, function can not be finished + + Index: lams_tool_sbmt/src/java/org/lamsfoundation/lams/tool/sbmt/web/MonitoringAction.java =================================================================== diff -u -r6be8a06fb5f23ca8ff4b4a6fdee9c66ced5d5562 -rc5e85c8b7a263c6a1fde5f01237638a8e3631677 --- lams_tool_sbmt/src/java/org/lamsfoundation/lams/tool/sbmt/web/MonitoringAction.java (.../MonitoringAction.java) (revision 6be8a06fb5f23ca8ff4b4a6fdee9c66ced5d5562) +++ lams_tool_sbmt/src/java/org/lamsfoundation/lams/tool/sbmt/web/MonitoringAction.java (.../MonitoringAction.java) (revision c5e85c8b7a263c6a1fde5f01237638a8e3631677) @@ -223,7 +223,7 @@ try { marks = new Long(WebUtil.readLongParam(request,"marks")); } catch (IllegalArgumentException e) { - errors.add(ActionMessages.GLOBAL_MESSAGE,new ActionMessage("monitoring.mark.input.error",e.getMessage())); + errors.add(ActionMessages.GLOBAL_MESSAGE,new ActionMessage("errors.mark.invalid.number")); } //if marks is invalid long, then throw error message directly. String comments = WebUtil.readStrParam(request,"comments",true);