struts
看源代码有如下一段,出现在ejb中:
throw new CategoryException(
"Shop id/lang id is empty or null",
"error.subcategory.null");
在资源文件ApplicationResources.properties中定义着error.subcategory.null=XXX
实际构造的类是以Shop id/lang id is empty or null和XXX为参数的
struts用什么机制使error.subcategory.null转化为XXX?
如果我就想用error.subcategory.null字符串为参数怎么实现?