You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Domen, Ken" <Ke...@nike.com> on 2002/01/11 18:34:56 UTC
using upload
Is there a better way to create an uploaded document on the server using
FormFile in the Action class?
if (formFile != null)
{
File file = new File("/apps/dev/weblogic/weblogic/myserver/ms3/"
+ formFile.getFileName());
RandomAccessFile ras = new RandomAccessFile(file, "rw");
ras.write(formFile.getFileData());
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>