It helped. Thank you.

2008/1/28, Hernandez, David <[EMAIL PROTECTED]>:
>
>
> Andriy,
>
> Try putting the array in an encapsulating object, i.e. an ArrayList.
>
> Regards,
>
> David Hernandez
>
> -----Original Message-----
> From: Andriy Kharchuk [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 28, 2008 4:15 PM
> To: Struts Users Mailing List
> Subject: Struts 2: Can not set Action's property which is an array of
> Strings
>
> Hi guys,
>
> My Action has property which is an array of Strings. I'm rendering html
> table using this property. What is correct way to update this property
> from jsp?
>
> I tried the following but it doesn't work:
>
> 1. JSP
> <s:iterator value="entityList" status="rowstatus">
>     <s:textfield name="selectedItems[%{#rowstatus.index}]"/>
>
> 2. Action
>     private String[] selectedItems;
>
>     public String[] getSelectedItems(){
>         return selectedItems;
>     }
>
>     public void setSelectedItems(String[] selectedItems){
>         this.selectedItems = selectedItems;
>     }
>
> Exception is
> [ERROR] 23:11:16,750 InstantiatingNullHandler | Could not create and/or
> set value back on to object |
> com.opensymphony.xwork2.util.InstantiatingNullHandler.nullPropertyValue(
> InstantiatingNullHandler.java:110)| nullPropertyValue
> java.lang.InstantiationException: [Ljava.lang.String;
>     at java.lang.Class.newInstance0(Unknown Source)
>
> I will appreciate any help.
>
> Thanks,
> Andriy
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - -
>
> This message is intended only for the personal and confidential use of the
> designated recipient(s) named above.  If you are not the intended recipient
> of this message you are hereby notified that any review, dissemination,
> distribution or copying of this message is strictly prohibited.  This
> communication is for information purposes only and should not be regarded as
> an offer to sell or as a solicitation of an offer to buy any financial
> product, an official confirmation of any transaction, or as an official
> statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
> secure or error-free.  Therefore, we do not represent that this information
> is complete or accurate and it should not be relied upon as such.  All
> information is subject to change without notice.
>
> --------
> IRS Circular 230 Disclosure:
> Please be advised that any discussion of U.S. tax matters contained within
> this communication (including any attachments) is not intended or written to
> be used and cannot be used for the purpose of (i) avoiding U.S. tax
> related penalties or (ii) promoting, marketing or recommending to another
> party any transaction or matter addressed herein.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to