struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saeed Iqbal <saee...@gmail.com>
Subject Re: Clear text while using File Upload in Struts2
Date Mon, 28 Dec 2009 07:12:14 GMT
If you have not submitted the form and you want this functionality
then you are talking about ajax file upload

struts doesnt provide ajax file upload but you can do that in struts
using other libraries

On Monday, December 28, 2009, Mageshwaran <mageshwaran@dhyanit.com> wrote:
> I have not submitted the form.
> I just only selected the file using file dialog.
>
> It would be helpful if you give the code snippet to implement in Java Script.
>
> Magesh.
>
>
> Saeed Iqbal wrote:
>
> It gets submitted after post
>
> if you want to clear maybe use javascript to clear
>
> On Monday, December 28, 2009, Mageshwaran <mageshwaran@dhyanit.com> wrote:
>
>
> Hi All,
>        In my jsp code i had used "<s:file name="uploadFile" label="File" size="20"
onkeypress = "killEvent(event)"/>" for file upload using IFrame.
>
> The issue is if i select a file using file dialog, there is no option to clear the selected
text. Can any one help me how to clear the uploaded file path text?
>
> Thanks in Advance,
> Magesh.
>
>
>
>
>
>
>
>
>
>
>

-- 
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message