[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: html:file usage



The value part is ignored in the <input type="file" > tag by most of the
browsers.  The reason being this is security issue.

Check out this link why the value tag is ignored .

http://lists.w3.org/Archives/Public/www-html/2002Feb/0060.html

--Vikas
----- Original Message -----
From: "Poorav Chaudhari" <pooravc@yahoo.com>
To: <ajug-members@ajug.org>
Sent: Tuesday, March 11, 2003 6:54 PM
Subject: html:file usage


> I am building an application using tomcat and struts framework.
>
> I am facing a strange problem in implementing html:file tag.  under normal
> circumstances i am able to upload the file without any problems. now
suppose i
> have a form of few other fields like text, checkbox, etc., and including
the
> file field. If someone enters an invalid field. i do a server side
validation
> and take the user back to the form page so that they can re-enter the
invalid
> field. the rest of the field stay populated as expected but the file field
> becomes empty. which is not the behaviour i want. The file field should
remain
> populated with the file i selected in my file open dialog box. is this a
normal
> behaviour with html:file or am i missing something. My html file tag looks
as
> follows.
> <html:file property="resumeFile" name="resourceForm"/>
>
>
> =====
> Poorav Chaudhari
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Web Hosting - establish your business online
> http://webhosting.yahoo.com
>