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]