在论坛中发代码如何才能变色?
刚发了个帖。是关于sturts上传的。贴了好多代码。不知道会不会变色,因为是新人。也是菜鸟。本想法完看看如何。没想到原创帖还要审核...再贴个代码看看。
程序代码:
public class UploadForm extends ActionForm { /* * Generated Methods */ private FormFile pic; private String name; public String getName() { return name; } public void setName(String name) { this.name = name; } /** * Method validate * @param mapping * @param request * @return ActionErrors */ public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { // TODO Auto-generated method stub return null; } /** * Method reset * @param mapping * @param request */ public void reset(ActionMapping mapping, HttpServletRequest request) { // TODO Auto-generated method stub } public FormFile getPic() { return pic; } public void setPic(FormFile pic) { this.pic = pic; } }