可以,为什么不可以呢?
在你的action中分别对图片和文字进行保存不就行了.
public String execute()
{
service.savePic(pic);
service.saveContent(content) ;
return SUCCESS ;
}
在你的action中分别对图片和文字进行保存不就行了.
public String execute()
{
service.savePic(pic);
service.saveContent(content) ;
return SUCCESS ;
}
上传
}
else{
定义个MAP
map.put(item.getFieldName(), item.getString());
}String key = (String) map.getKey();
String value = map.getValue() + "";if(key.equals("你的字段名")){
字段 = value;
}然后把值set到你的form就OK