my dog learned polymorphism*
The moose likes Struts and the fly likes hidden for radio and multibox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "hidden for radio and multibox" Watch "hidden for radio and multibox" New topic
Author

hidden for radio and multibox

Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

hi,

If i want to maintaint hidden values for selected iteams of radio button, multibox what i should i do.
any code sample please
rahul
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
It's not at all clear to me what it is you're trying to do. Could you explain it in greater detail?


Merrill
Consultant, Sima Solutions
Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

hi,
How are you Mr. Merrill, hope all is well. Yes, I was talking about html:multibox, I want to maintian a hidden fields for all checked values for the multibox. Because when I come back from the other jsp pages, checked vauels of html:multibox are getting disappear.


regards,
rahul.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Hi Raul,

I'm doing well, thanks.

Regarding your question: You shouldn't need to have a hidden value associated with an <html:multibox> because this tag will redisplay the value if you've coded it properly. The value it displays is associated with the Form bean property you specify in the property attribute of the tag. As long as the property is set, the appropriate boxes will show as checked.

If this isn't working for you, there's probably some type of error in the code. If you'd like help in debugging it, please post the relevant portions of the code.
Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

hello mr Merrill , good morning,

CustomerPaymentMethodChangeStart.JSP iterate has this code

I am using the below line for multi box because when used form bean's string property array
<nested:multibox name="mediaOrder" property="orderid">

the selected multi boxes were not getting disappear even though i send the new request for same jsp while im in the same session.


my action code for retrive ing the multi box.



struts-config

i am displaying the selected check box values in an other page like this.

can you please tell me where i should make some changes in order to meet my requirement.

and one more doubt is that is it a coding convention to maintain request scope in struts-config.


thanks in advance

regards,
rahul
Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

Dear Mr Merrill ,
is there any update on the problem mentioned here in this thread. If there is no solution this problem this may be a bug of struts. do not think so?

regards,

rahul
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hidden for radio and multibox