Re: selectedItems of checkbox
need help with this please. Thanks. Thankyou for your response. yes, it is displaying in correct form in the browser. I want to delete the selected values from the original list. In the Dispatch Action I am checking the selectedList which are String values with the originallist and doing string comparision to check if they match and trying to delete them from original list. but when trying to compare the values as they are different it's not deleting/removing them from the original list according to the logic I wrote in delete method. How would you advice me to proceed on this? Thanks. below is the code in the jsp. requestURI="PrepareAction.do" defaultsort="7" defaultorder="descending" pagesize="6"> href="PrepareAction.do" headerClass="sortable"> property="value"/> not sure how to fix this? thanks. From: Scott Van Wart <[EMAIL PROTECTED]> 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 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. it's 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: selectedItems of checkbox
below is the code in the jsp. requestURI="PrepareAction.do" defaultsort="7" defaultorder="descending" pagesize="6"> href="PrepareAction.do" headerClass="sortable"> property="value"/> not sure how to fix this? thanks. From: Scott Van Wart <[EMAIL PROTECTED]> 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 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. it's 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: selectedItems of checkbox
Thankyou for your response. yes, it is displaying in correct form in the browser. I want to delete the selected values from the original list. In the Dispatch Action I am checking the selectedList which are String values with the originallist and doing string comparision to check if they match and trying to delete them from original list. but when trying to compare the values as they are different it's not deleting/removing them from the original list according to the logic I wrote in delete method. How would you advice me to proceed on this? Thanks. From: Scott Van Wart <[EMAIL PROTECTED]> 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 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. it's 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: selectedItems of checkbox
fea jabi wrote: I have added a column with 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. it's 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
selectedItems of checkbox
I have added a column with 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. it's Fea's -- why is the value different? I tried to use LabelValueBean in the multibox. Still it's the same. How to fix this? Thanks. _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]