struts2 自定义类型转换值传递问题?
自定义类型转换值传递问题 :
public Object convertValue(Map<String, Object> context, Object value,
Class toType) {
String test = "";
if (Date.class == toType) {
test = "ABCD"; // 用什么方式能把值传递到下一个判断中。
} else if (String.class == toType) {
// 怎么取得test属性值。
}
return null;
}