struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kommineni Anita <gec_an...@yahoo.com>
Subject Re: re�� File upload using <html:file> tag fails..java.lang.IllegalArgumentException:
Date Wed, 10 May 2006 18:59:46 GMT
Kyle,
Thanks for the reply. But I ahve it declared.
I have that defined in my html as follows
<html:form method=get action="/checkInNew"
enctype="multipart/form-data">

Appreciate any further insights..

>   
--- Kyle Wu <buaa_kyle@yahoo.com.cn> wrote:

> mayby you forgot to set the "enctype" attribute in
> the  "<html:form ...>" tag, it should be
>   
>   <html:form ... ... enctype="multipart/form-data">
>   
> kommineni Anita <gec_anita@yahoo.com> 
>     
> Hi,
> Trying to upload a file using 
> property="primaryFile">.
> In my Action form I have the property defined as 
> org.apache.struts.upload.FormFile and have
> appropriate
> getter and setter.
> It gives me this exception
>  E SRVE0026E: [Servlet Error]-[BeanUtils.populate]:
> java.lang.IllegalArgumentException: Cannot invoke
>
com.strykercorp.e3s.stellent.forms.CheckInNewForm.setPrimaryFile
> - argument type mismatch.
> 
> Appreciate any thoughts..
> Thanks
> --- Jakub Milkiewicz  wrote:
> 
> > As far as i remember "d" means digit, but not
> digits
> > ...
> > try to add + or *.
> > 
> > 
> > 2006/5/10, temp temp :
> > >
> > >
> > >
> > > Note: forwarded message attached.
> > >
> > > ------------------------------
> > > Blab-away for as little as 1￁/min. Make
> > PC-to-Phone
> >
> Callsusing
> > Yahoo! Messenger with Voice.
> > >
> > >
> > >
> > > ---------- Wiadomo�� oryginalna ----------
> > > From: temp temp 
> > > To: user@struts.apache.or
> > > Date: Wed, 10 May 2006 09:08:49 -0700 (PDT)
> > > Subject: [java.util.regex ]using Regular
> > Expressions
> > > I am having problems with Regular Expressions
> > usage.
> > > I want to ensure that the user enters only
> digits
> > and no other characters.
> > > For this I am using the code below.
> > > I create a Pattern Object to which I pass a
> > regular expression and when I
> > > call matches method I always get false. What am
> I
> > doing wrong?
> > >
> > > Pattern p=Pattern.compile("\\d");
> > > System.out.println(p.matcher("456").matches());
> > > Thanks & Regards
> > >
> > >
> > >
> > >
> > > ------------------------------
> > > How low will we go? Check out Yahoo! Messenger's
> > low PC-to-Phone call
> > > rates.
> > >
> >
> 
> > >
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail:
> > user-help@struts.apache.org
> > >
> > >
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 
> 
> 		
> ---------------------------------
> 
�Ż��������-3.5G�����20M����
> 
�Ż�����-����ɱ������ɧ��
 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message