struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "fea jabi" <>
Subject Re: selectedItems of checkbox
Date Wed, 07 Jun 2006 19:07:04 GMT
below is the code in the jsp.

<display:table name="${}" id="mgrRuns" 
requestURI=""  defaultsort="7" defaultorder="descending" 
<display:column titleKey="lbl.runname" sortable="true" 
href="" headerClass="sortable">
           <c:set var="runBean" value="${mgrRuns.runName}" />

           <html:multibox property="selectedRuns"><bean:write name="runBean" 
                    <bean:write name="runBean" property="label"/>


not sure how to fix this? thanks.

>From: Scott Van Wart <>
>Reply-To: "Struts Users Mailing List" <>
>To: Struts Users Mailing List <>
>Subject: Re: selectedItems of checkbox
>Date: Wed, 07 Jun 2006 15:30:34 -0300
>fea jabi wrote:
>>I have added a column with <html:multibox> in a table.
>>The values in the column are
>>Fea's Car
>>Joe's Car
>>In the DispathAction when tried to see the values of the selected items.
>>Fea's ------ why is the value different?
>>I tried to use LabelValueBean in the multibox. Still it's the same. How to 
>>fix this?
>As long as the values are fine in the Action.execute method's ActionForm 
>parameter, you should be fine.  When you use special characters like the 
>single-quote in values, struts escapes them before sending them to the web 
>browser (try viewing the HTML source in your browser), and the browser 
>decodes them when rendering the form.  Then when the browser sends them 
>back, it encodes the values the same way.  Struts gets these values and 
>translates them back into the original form before putting them in your 
>form bean.  I would suggest a couple of things to check:
>- Has Struts populated your form bean before you tried viewing the values, 
>or are you looking at the unencoded values in the DispatchAction class?
>- Make sure you're using struts to output the values, and not scriptlets, 
>which don't encode the values properly.
>- Scott
>To unsubscribe, e-mail:
>For additional commands, e-mail:

Express yourself instantly with MSN Messenger! Download today - it's FREE!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message