You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Patrick Cheng <pa...@hq.oneport.com> on 2003/12/31 03:55:47 UTC
Primitive type bean property
Hi All,
A quick question.
Has anyone tried to write the form with property of a 'char' primitive
type?
That is:
public char getC(){...}
public void setC(char c){...}
Is it supposed to work normally? I was doing it and the value was never
set.
I just need to know that if anyone had done it this way and get it to
work.
The reason I'm not using Wrapper class Character... Is because the code
is generated by ejbgen.
Rgds,
Patrick.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Primitive type bean property
Posted by Paulo Rezende <ja...@pmbr.net>.
Patrick,
Probabily you'll have problems with null values.
Paulo
----- Original Message -----
From: "Patrick Cheng" <pa...@hq.oneport.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Wednesday, December 31, 2003 12:55 AM
Subject: Primitive type bean property
Hi All,
A quick question.
Has anyone tried to write the form with property of a 'char' primitive
type?
That is:
public char getC(){...}
public void setC(char c){...}
Is it supposed to work normally? I was doing it and the value was never
set.
I just need to know that if anyone had done it this way and get it to
work.
The reason I'm not using Wrapper class Character... Is because the code
is generated by ejbgen.
Rgds,
Patrick.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Primitive type bean property
Posted by Amanpreet <am...@netsoftglobal.com>.
Hi Patrick
Do you want to Map the <html:text /> to a Beanproperty of type CHAR.?
Regards
Amanpreet
-----Original Message-----
From: Patrick Cheng [mailto:patrick.cheng@hq.oneport.com]
Sent: Wednesday, December 31, 2003 8:26 AM
To: Struts Users Mailing List
Subject: Primitive type bean property
Hi All,
A quick question.
Has anyone tried to write the form with property of a 'char' primitive
type?
That is:
public char getC(){...}
public void setC(char c){...}
Is it supposed to work normally? I was doing it and the value was never
set.
I just need to know that if anyone had done it this way and get it to
work.
The reason I'm not using Wrapper class Character... Is because the code
is generated by ejbgen.
Rgds,
Patrick.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org