Also ... I'm getting this error

I have this in my struts-config.xml

<form-property name="reps" type="java.util.HashMap"/>

and this in my code ... 

dynaForm.set("reps", "Foo Bar", "1");
dynaForm.set("reps", "Bar Foo", "2");

and get this error ... 

java.lang.NullPointerException: No mapped value for 'reps(Foo Bar)'

What gives?


-----Original Message-----
From: Darren Hill [mailto:[EMAIL PROTECTED]]
Sent: September 25, 2002 3:44 PM
To: 'Struts Users Mailing List'
Subject: DynaForm


This should be an easy one ...

What types can a DynaForm support? ( ie. String, Integer, BigDecimal, etc)
        - I assume anything that can be converted to a String ( toString )

If I have a DynaForm form-property as follows

<form-property name="marketingToolId" type="java.lang.Integer"/>

how do I get that to display in a text field? .. like

<html:text property="marketingToolId" size="16" maxlength="16"/>

further .. how can I access this? ... like ...

(Integer)form.get("marketingToolId")

Thanks.

Darren.

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to