KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > quikj > application > communicator > applications > webtalk > controller > DeleteFileForm


1 /*
2  * DeleteRenameFileForm.java
3  *
4  * Created on June 12, 2003, 9:02 PM
5  */

6
7 package com.quikj.application.communicator.applications.webtalk.controller;
8
9 import javax.servlet.http.*;
10 import org.apache.struts.action.*;
11 /**
12  *
13  * @author Vinod Batra
14  */

15 public class DeleteFileForm extends ActionForm{
16     private String JavaDoc fileName ;
17     /** Creates a new instance of DeleteRenameFileForm */
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     /** Getter for property fileName.
31      * @return Value of property fileName.
32      *
33      */

34     public java.lang.String JavaDoc getFileName() {
35         return fileName;
36     }
37     
38     /** Setter for property fileName.
39      * @param fileName New value of property fileName.
40      *
41      */

42     public void setFileName(java.lang.String JavaDoc fileName) {
43         this.fileName = fileName;
44     }
45     /** Creates a new instance of DeleteRenameFileForm */
46     public DeleteFileForm() {
47     }
48     
49 }
50
Popular Tags