Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Struts
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Struts section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 27th, 2006, 07:56 AM
Registered User
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default having problem Using Indexed properties with Multi

Hi i am trying to use a multi select box in logic iterate
in this way

<logic-el:iterate indexId="ctr" id="admindepartment" name="admindepartments">

    <html-el:select property="bookMapped(${ctr})" multiple="true" size="2">

        <html-el:options name="bean" property="dbBookType"/>
        </html-el:select>

    </logic-el:iterate >

in the form bean i have following code.

private Map selectedBooks;

public Object getBookMapped(String index) {
    return selectedBooks.get(key);
}

public void setBookMapped(String index,Object value) {
    selectedBooks.put(key,value);
}
now in each multiple select box i am selecting
multiple books but in the resulting map selectedBooks
i am getting one value for each multiple selection
then i had also tried using

public void setBookMapped(String index,Object[]
value) {
    selectedBooks.put(key,value);
}

but which is throwing an illegelargumenttype
exception.

please help.

thanks in advance.

krishan.



krishan Rathi





Similar Threads
Thread Thread Starter Forum Replies Last Post
"validator" mis-indexed? jemptymethod BOOK: Professional Java Development with the Spring Framework 1 August 1st, 2005 09:17 AM
Need Help : Indexed View upermadi SQL Server 2000 3 September 29th, 2004 06:51 AM
Indexed View jemacc SQL Server 2000 2 July 21st, 2004 05:11 AM
Stroing Objects in Vector at indexed value hanumaninme BOOK: Beginning Java 2 4 February 10th, 2004 02:04 AM
How to relate a double indexed table? izz SQL Server 2000 1 August 18th, 2003 06:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.