You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Graham <dg...@hotmail.com> on 2002/10/16 16:59:09 UTC

Re: Hashtable in ActionForm

You can do this in 1.1.

See section  4.2.2
http://jakarta.apache.org/struts/userGuide/building_controller.html

BTW, You should be using :

private Map testData = new HashMap();

David



>From: "Hari" <ha...@itwinetech.com>
>Reply-To: <ha...@itwinetech.com>
>To: "Struts-User" <st...@jakarta.apache.org>
>Subject: Hashtable in ActionForm
>Date: Wed, 16 Oct 2002 20:32:16 +0530
>
>Hello,
>
>Can somebody help me . I am not sure if this is possible.
>Can struts-html tag set and get data from a Hashtable in ActionForm
>
>Like this
>
>In my JSP I have
><html:text property=”name” >
>
>and in my actionform is
>public class TestActionForm extends ActionForm
>
>
>             public Hashtable testData = new Hashtable(); // This hashtable
>contains a key value pair as key = “name” and value=”xyz”
>}
>
>Thanks in advance
>Hari


_________________________________________________________________
Internet access plans that fit your lifestyle -- join MSN. 
http://resourcecenter.msn.com/access/plans/default.asp


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>