Wasnt aware of any such restrictions with any Browser with respect to use of <html:file> When you get the chance please forward the link which contains the information with respect to Client Browser (Opera vs IE vs Netscape)
Regards,
M-
----- Original Message ----- From: "dumbQuestionsAsker _" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <user@struts.apache.org>
Sent: Sunday, July 17, 2005 12:13 PM
Subject: Re: <html:file> pre populating


After some more advanced googleling, I learnt this problem is due to browser's security.
THE ONLY BROWSER SUPPORTING FILE INPUT IS OPERA, NO ONE ELSE :(.
To conclude, that's not a struts problem.

From: "Martin Gainty" <[EMAIL PROTECTED]>
Reply-To: "Martin Gainty" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Subject: Re: <html:file> pre populating
Date: Sun, 17 Jul 2005 11:46:39 -0400

the property you are instanting must of type org.apache.struts.upload.FormFile
I guess I cant provide any specific help you unless the I see your code
Martin-
----- Original Message ----- From: "dumbQuestionsAsker _" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <user@struts.apache.org>
Sent: Sunday, July 17, 2005 11:14 AM
Subject: Re: <html:file> pre populating


>YourActionForm yourActionForm=(YourActionForm)form;
yourActionForm.setSpecificField(thevaluefromtheFile);
Yes I did but that only returns the file name, not the whole path, and im not able to populate the <html:file> input with this only file name. The only solution I found is to populate a hidden <html:text> with a javascript on <hml:file>'s "onchange" event and create a new bean property to store the whole file path+file name.
Less I got object, better it is :)

Dumbo

From: "Martin Gainty" <[EMAIL PROTECTED]>
Reply-To: "Martin Gainty" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Subject: Re: <html:file> pre populating
Date: Sun, 17 Jul 2005 10:50:30 -0400

what values are the (Action/DynaAction)Form fields supposed to contain?
what values does the file contain?
what is the purpose of this file?

Have you tried
YourActionForm yourActionForm=(YourActionForm)form;
yourActionForm.setSpecificField(thevaluefromtheFile);
???
Martin-
----- Original Message ----- From: "dumbQuestionsAsker _" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Sunday, July 17, 2005 6:14 AM
Subject: <html:file> pre populating


Hi everybody,

Is there any mechanisme provided by struts to allow prepopulating <html:file> inputs in the case of iterating Form which retrives beans values ?(It seems that in the best case FormFile only return the file name not the whole path)

Thanks in advance.
best regards, Dumbo :)

_________________________________________________________________
Ne cherchez plus, trouvez ! Avec le nouveau MSN Search. http://search.msn.fr/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
MSN Messenger : personnalisez votre messagerie instantanée ! http://g.msn.fr/FR1001/866


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Ne cherchez plus, trouvez ! Avec le nouveau MSN Search. http://search.msn.fr/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to