• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Struts - Improve Plugin : Layout:File Upload Validation Problem

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

We are using Struts 1.4, and Improve plug-in in our application.

In IE 6.0, I tried to enter a wrong value(e.g. "sample") manually into a "File-Upload" text-field, instead of using the associated "Browse" button. When I validate this form, I get a javascript error - "Access is denied". In Firefox, as soon as I click on the "File-Upload" text-field, a browse window opens automatically, making sure that the user can not enter invalid file name.


Is there any way to make this particular field read-only? Or can javascript be used to validate this particular field? If so, please suggest how.


The JSP code snippet that we use:


Here setting the mode to read-only did not help! I still am able to edit that text field manually.

Please help me this problem!

Thanks in advance
reply
    Bookmark Topic Watch Topic
  • New Topic