Hi Fea,

It isn't working for you because boolean is a primitive type, and can't be 
instantiated.  The DynaActionForm can only be used with classes, so you will 
need to use java.lang.Boolean to support boolean values. 

I hope this helps,

James

-----Original Message-----
From: fea jabi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 29, 2005 9:15 AM
To: user@struts.apache.org
Subject: DynaActionform 


The below DynaActionForm works fine. I tried to change all the 
java.lang.Boolean to boolean.

<form-property name="confirm" type="java.lang.Boolean" initial="true"/>

to

<form-property name="confirm" type="boolean" initial="true"/>

<form-bean
       name="SetupForm"
       type="org.apache.struts.action.DynaActionForm" dynamic="true">
       <form-property name="custName" type="java.lang.String"/>
       <form-property name="typeName" type="java.lang.String"/>
       <form-property name="typeNameDesc" type="java.lang.String"/>
       <form-property name="confirm" type="java.lang.Boolean" 
initial="true"/>
   </form-bean>


When changing java.lang.Boolean - boolean  the DynaActionform is not getting 
created. In the action it's Null. Not sure why is that?

Any suggessions on the same?
Thanks.

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


---------------------------------------------------------------------
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