Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
and POOF! You're gone! But look, this tiny ad is still here:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic