This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes fileupload- default file name-ujent help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

fileupload- default file name-ujent help


Joined: Nov 16, 2001
Posts: 7
Hi I am using the com.oreilly.servlet.MultipartRequest for uploading the file, but I want to set the default file value in HTML, beacuse it is fixed file which I want to upload.How to do this ?I have tried like this but servlet is giving file as "null".
<INPUT TYPE=FILE NAME=file value="E:/mail/NewTest.class">
Please solve my problem.
Can any body help me?;
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Oddly enough, someone else asked the exact same question here!

I agree. Here's the link:
subject: fileupload- default file name-ujent help
Similar Threads
How do I provide a default for an environment variable accessed via ${env.VAR_NAME} in build script?
fileupload- default file name
File Uploading Problem !!
File Uploading Problem !!!
Configuring FreeMarker(.ftl) with Struts 2