java,struts2小问题
package com.text.converter;
import java.util.Map;
import ognl.DefaultTypeConverter;
import com.text.model.Point;
public class pointconverter extends DefaultTypeConverter {
public Object convertValue(Map context, Object value, Class toType) {
// TODO Auto-generated method stub
if(Point .class = = toType)
{
Point p=new Point();
}
}
}
if(Point .class = = toType)这段老是红的 和我对照的教程一样 怎么回事