views:

10

answers:

0

Hi All, I am using struts 2. I need a file upload control in a jsp. I added that control by using the following code snnipet:

<ww:file  name="upload" label="FileUpload" />

It is working fine on my local jboss server (Windows machine)

But when i deploy this code on web sphere server (Linux machine) everything works fine except backspace ie i am able to browse for the file as well as i am able to type the filename manually in the text-box in front of browse button nut i am not able to delete any character using backspace key.

To avoid this i tried to disable manually typing the name by using following code:

<ww:file  name="upload" label="FileUpload" onkeydown="return false;"/>

This also works on local ie manually entering something is disabled but when i deploy it to remote linux webshere server i can enter text except backspace. Please help me as i want one of two functionalities: Either backspace should work on both local and remote server or user should not be able to enter anything into the file upload textbox.