S. it is true. The browsers won't allow you to set the name of the file.

The user have to select the file name using the browse button.

Thanks
Regards
V.Karthi

-----Original Message-----
From: Jason Lea [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 23, 2005 11:09 AM
To: Struts Users Mailing List
Subject: Re: Set the file name in html:file


Browsers don't allow you to set a file name, as it could be a security
risk

eg set file name to be c:\windows\someimportantfile.txt then get the
form to auto submit and send the file to the server

Anuradha S.Athreya wrote:

>Hello,
>
>In the JSP, I need to set the default file name in the JSP.
>I'm using  html:file taglib.
>I'm retrieving the file name (to be set) from a bean. What is the
syntax for
>this?
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> 
>

--
Jason Lea





Confidentiality Notice

The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to