Index: lams_tool_sbmt/conf/language/SbmtResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_tool_sbmt/conf/language/Attic/SbmtResources.properties,v diff -u -r1.1 -r1.2 --- lams_tool_sbmt/conf/language/SbmtResources.properties 27 Mar 2006 22:30:23 -0000 1.1 +++ lams_tool_sbmt/conf/language/SbmtResources.properties 4 Apr 2006 05:08:04 -0000 1.2 @@ -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 =================================================================== RCS file: /usr/local/cvsroot/lams_tool_sbmt/src/java/org/lamsfoundation/lams/tool/sbmt/web/MonitoringAction.java,v diff -u -r1.26 -r1.27 --- lams_tool_sbmt/src/java/org/lamsfoundation/lams/tool/sbmt/web/MonitoringAction.java 6 Mar 2006 05:33:14 -0000 1.26 +++ lams_tool_sbmt/src/java/org/lamsfoundation/lams/tool/sbmt/web/MonitoringAction.java 4 Apr 2006 05:08:04 -0000 1.27 @@ -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);