<s:form action="NewRequestPostController" name="EmpReleaseTransferForm"
method="post" enctype="multipart/form-data" >
<td class="dataTD">
   <s:file  theme="simple" name="sponsorDetails" id="sponsorDetails"/>
   </td>

in action class

private ReleaseTransferRequestBean releaseTransfer = new
ReleaseTransferRequestBean();
   ArrayList attachPassport = null;
 public Object getModel() {
  return releaseTransfer;
 }
 public String execute() throws Exception
 {

  
System.out.println("---getTransferValue--"+releaseTransfer.getTransferValue());
  
System.out.println("---getSponsorDetailsFileName-"+releaseTransfer.getSponsorDetailsFileName())

On Fri, Dec 12, 2008 at 2:16 PM, Robert Graf-Waczenski <r...@lsoft.com>wrote:

> Hi,
>
> your problem description is a bit vague. Please post the source code of
> your upload page, the source code of your action class and the relevant
> parts of your struts.xml. I'm sure that then someone can help.
>
> Robert
>
>
> srinivasa_v . wrote:
>
>> Hi All
>> I have werid problem,
>> I am using file upload in struts and I have mentioned encrypt in form
>> and also using modeldriven.
>>
>> when I try to upload files
>> I am able to get the file,but the bean from modeldriven  Iam getting as
>> null.
>>
>> but when I try to remove encrypt from "form" ,I am able to get the bean
>> values
>> and but  file name as null
>>
>> can any one help me
>> regards
>> srinivas
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to