You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by rl...@apache.org on 2001/04/14 14:54:09 UTC
cvs commit: jakarta-struts/src/upload/org/apache/struts/webapp/upload UploadAction.java UploadForm.java
rleland 01/04/14 05:54:09
Modified: src/upload/org/apache/struts/webapp/upload UploadAction.java
UploadForm.java
Log:
Update copyright notices
Revision Changes Path
1.3 +7 -7 jakarta-struts/src/upload/org/apache/struts/webapp/upload/UploadAction.java
Index: UploadAction.java
===================================================================
RCS file: /home/cvs/jakarta-struts/src/upload/org/apache/struts/webapp/upload/UploadAction.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- UploadAction.java 2001/04/11 22:56:23 1.2
+++ UploadAction.java 2001/04/14 12:54:09 1.3
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-struts/src/upload/org/apache/struts/webapp/upload/UploadAction.java,v 1.2 2001/04/11 22:56:23 mschachter Exp $
- * $Revision: 1.2 $
- * $Date: 2001/04/11 22:56:23 $
+ * $Header: /home/cvs/jakarta-struts/src/upload/org/apache/struts/webapp/upload/UploadAction.java,v 1.3 2001/04/14 12:54:09 rleland Exp $
+ * $Revision: 1.3 $
+ * $Date: 2001/04/14 12:54:09 $
*
* ====================================================================
*
@@ -29,7 +29,7 @@
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
- * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
+ * 4. The names "The Jakarta Project", "Struts", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
* from this software without prior written permission. For written
* permission, please contact apache@apache.org.
@@ -87,7 +87,7 @@
* page to display them
*
* @author Mike Schachter
- * @version $Revision: 1.2 $ $Date: 2001/04/11 22:56:23 $
+ * @version $Revision: 1.3 $ $Date: 2001/04/14 12:54:09 $
*/
@@ -113,7 +113,7 @@
//retrieve the content type
String contentType = file.getContentType();
-
+
boolean writeFile = theForm.getWriteFile();
//retrieve the file size
@@ -141,7 +141,7 @@
" and has not been written to stream." +
" File Size: " + file.getFileSize() + " bytes. This is a" +
" limitation of this particular web application, hard-coded" +
- " in org.apache.struts.upload.UploadAction");
+ " in org.apache.struts.webapp.upload.UploadAction");
}
}
else {
1.3 +13 -13 jakarta-struts/src/upload/org/apache/struts/webapp/upload/UploadForm.java
Index: UploadForm.java
===================================================================
RCS file: /home/cvs/jakarta-struts/src/upload/org/apache/struts/webapp/upload/UploadForm.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- UploadForm.java 2001/04/11 22:56:24 1.2
+++ UploadForm.java 2001/04/14 12:54:09 1.3
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-struts/src/upload/org/apache/struts/webapp/upload/UploadForm.java,v 1.2 2001/04/11 22:56:24 mschachter Exp $
- * $Revision: 1.2 $
- * $Date: 2001/04/11 22:56:24 $
+ * $Header: /home/cvs/jakarta-struts/src/upload/org/apache/struts/webapp/upload/UploadForm.java,v 1.3 2001/04/14 12:54:09 rleland Exp $
+ * $Revision: 1.3 $
+ * $Date: 2001/04/14 12:54:09 $
*
* ====================================================================
*
@@ -29,7 +29,7 @@
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
- * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
+ * 4. The names "The Jakarta Project", "Struts", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
* from this software without prior written permission. For written
* permission, please contact apache@apache.org.
@@ -74,7 +74,7 @@
* that struts uses is org.apache.struts.upload.DiskMultipartRequestHandler.
*
* @author Mike Schachter
- * @version $Revision: 1.2 $ $Date: 2001/04/11 22:56:24 $
+ * @version $Revision: 1.3 $ $Date: 2001/04/14 12:54:09 $
*/
public class UploadForm extends ActionForm {
@@ -83,7 +83,7 @@
* The value of the text the user has sent as form data
*/
protected String theText;
-
+
/**
* Whether or not to write to a file
*/
@@ -93,7 +93,7 @@
* The file that the user has uploaded
*/
protected FormFile theFile;
-
+
/**
* The file path to write to
*/
@@ -128,35 +128,35 @@
public void setTheFile(FormFile theFile) {
this.theFile = theFile;
}
-
+
/**
* Set whether or not to write to a file
*/
public void setWriteFile(boolean writeFile) {
this.writeFile = writeFile;
- }
-
+ }
+
/**
* Get whether or not to write to a file
*/
public boolean getWriteFile() {
return writeFile;
}
-
+
/**
* Set the path to write a file to
*/
public void setFilePath(String filePath) {
this.filePath = filePath;
}
-
+
/**
* Get the path to write a file to
*/
public String getFilePath() {
return filePath;
}
-
+
public void reset() {
writeFile = false;
}