struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vikas Kumar Mittal (JIRA)" <>
Subject [jira] Created: (WW-2402) Tabular Data input issue
Date Wed, 02 Jan 2008 09:22:33 GMT
Tabular Data input issue

                 Key: WW-2402
             Project: Struts 2
          Issue Type: Bug
          Components: Other
    Affects Versions: 2.0.8
         Environment: JDK 5,Struts 2.0.8
            Reporter: Vikas Kumar Mittal


I am using struts2 lazy inizilation/tabular data input feature. 
In my jsp i am adding product country objects using javascript, 
and i have declaired the list in my action class,also i have defined



ProductAction Code===> 

private List<ProductCountry>productCountryList=new ArrayList<ProductCountry>();

public List<ProductCountry> getProductCountryList() { 
return productCountryList; 
public void setProductCountryList(List<ProductCountry> productCountryList) { 
this.productCountryList = productCountryList; 

jsp code ==> 

<s:hidden name="productCountryList[0].pkId" value="1"/> 
<s:hidden name="productCountryList[0].product.pkId" value="123"/> 
<s:hidden name="productCountryList[0].country.pkId" value="34"/> 
<s:hidden name="productCountryList[0].productStatus" value="ACTIVE"/> 

<s:hidden name="productCountryList[1].pkId" value="2"/> 
<s:hidden name="productCountryList[1].product.pkId" value="123"/> 
<s:hidden name="productCountryList[1].country.pkId" value="4"/> 
<s:hidden name="productCountryList[1].productStatus" value="ACTIVE"/> 

Every thing seems good, 

But when i submit this form it is throwing some exception, 

ERROR [com.opensymphony.xwork2.interceptor.ParametersInterceptor] ParametersInterceptor -
[setParameters]: Unexpected Exception caught setting 'productCountryList[0].productStatus'
on 'class com.iyogi.product.action.ProductAction: Error setting expression 'productCountryList[0].productStatus'
with value '[Ljava.lang.String;@998537' 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message