Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts - Improve Plugin : Layout:File Upload Validation Problem

 
Vithya Alagirisamy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic