1 6 7 package com.quikj.application.communicator.applications.webtalk.controller; 8 9 import javax.servlet.http.*; 10 import org.apache.struts.action.*; 11 15 public class DeleteFileForm extends ActionForm{ 16 private String fileName ; 17 18 19 public ActionErrors validate(ActionMapping mapping, 20 HttpServletRequest request) { 21 22 ActionErrors errors = new ActionErrors(); 23 if (fileName==null || fileName.length()== 0) { 24 errors.add("fileName", new ActionError("file.name.enter")); 25 } 26 27 return errors; 28 } 29 30 34 public java.lang.String getFileName() { 35 return fileName; 36 } 37 38 42 public void setFileName(java.lang.String fileName) { 43 this.fileName = fileName; 44 } 45 46 public DeleteFileForm() { 47 } 48 49 } 50 | Popular Tags |