struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carmi_cd <carmi_...@yahoo.com>
Subject Re: [S2]Checkbox value
Date Fri, 14 Dec 2007 06:20:55 GMT

I've tried what you've suggested but i got same error..
Unexpected Exception catched: Error setting expression 'chkUserId' with
value '[Ljava.lang.String;@138c03'

here is part of the code..

                        <s:iterator id="users" value="getUsersList()">
                            <tr> 
                                <td align="center">
                                    <input name="chkUserId" type="checkbox"
                                             value="%{userId()}"/>                    
              
                                </td>
                                <td align="left" valign="top">
                                    <s:url id="report"
value="UserMgt_input.action?userId=%{getUserId()}&task=edit"/>
                                    <s:a theme="ajax" 
                                         href="%{report}" 
                                         targets="module"
                                         errorText="Unable to load Report
Generator."
                                    >
                                        <s:property
value="getUserId()"/><s:property value="getLastName()"/> , <s:property
value="getFirstName()"/> <s:property value="getMiddleName()"/>
                                    </s:a>
                                </td>
                                <td align="left" valign="top">
                                    <s:property value="getUserName()"/>
                                </td>
                                <td align="left" valign="top">
                                    <s:iterator id="modules"
value="getModules()">
                                        <s:property
value="getModuleName()"/> ,                                    
                                    </s:iterator>
                                </td>
                            </tr>
                        </s:iterator>  

do you know how i should solve this? Thanks in advance..



jogep wrote:
> 
>>  <input name="chkUserId" 
>>         type="checkbox" 
>>     value="<s:property value="getUserId()"/>"/> 
> 
> try this version:
> <input name="chkUserId" 
>             type="checkbox" 
>             value="%{userId()}"/> 
> 
> you can't use tags in tags.
> 
> Best Regards
> Johannes Geppert
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-S2-Checkbox-value-tp14291211p14330776.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message