struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "srini vasan" <srinivasan...@gmail.com>
Subject Re: Struts 2 select tag
Date Fri, 08 Aug 2008 04:57:05 GMT
Hi,
If you are trying to retrieve the arraylist data assigned in the action u
need to do the following.
If this is ur problem try the below code

For ex :

private ArrayList aldata;//ArrayList declaration

and in jsp u need to add it as

<s:select label="names" list="aldata"/>




On Mon, Jul 28, 2008 at 11:43 PM, Deepika Appana
<deepika.appana@gmail.com>wrote:

> Hi,
>
> I am a newbie to struts 2. I have a question about the struts 2 select tag.
>
> When I try to use a property defined in package.properties for the "list",
> For Eg:
>
> <s:select label="Names" list="project.names"/>
>
> (project.names is defined in the package.properties)
> i get an exception that states that the project.names is not a enumeration
> or map. I am wondering why it does not evaluate to the list that I have
> defined in the properties file.
>
> Thanks,
>
> D
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message