*
The moose likes Struts and the fly likes Struts - Improve Plugin :  Layout:File Upload Validation Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts - Improve Plugin :  Layout:File Upload Validation Problem" Watch "Struts - Improve Plugin :  Layout:File Upload Validation Problem" New topic
Author

Struts - Improve Plugin : Layout:File Upload Validation Problem

Vithya Alagirisamy
Greenhorn

Joined: Aug 23, 2010
Posts: 1
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

Regards,
Vithya
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts - Improve Plugin : Layout:File Upload Validation Problem
 
Similar Threads
unable to do validation for select in struts2
Cant able to get focus at perticular textfield in javascript
Struts validations of file path
how to validate file path?
Disable right click, copy & paste option in <html:file>