It's not a secret anymore!*
The moose likes Struts and the fly likes optiontransferselect tag problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "optiontransferselect tag problem" Watch "optiontransferselect tag problem" New topic
Author

optiontransferselect tag problem

venkataramana raju
Greenhorn

Joined: Sep 11, 2005
Posts: 28
Hi all,

i am very new to Struts 2, i am using "optiontransferselect" tag.

1) How can i validate doubleList(right side selected list should not be empty) in javascript ?
2) How can i get doubleList in action class?

Code which is in my jsp is :-
<sptiontransferselect id="listOfObjects" name="listOfObjects" list="myMap" doubleId="selectedObjects" doubleName="selectedObjects" doubleList="" allowUpDownOnLeft="false" allowSelectAll="false" allowUpDownOnRight="false" />

Thanks, in advance...
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

1) How can i validate doubleList(right side selected list should not be empty) in javascript ?

Since you know the ID of the second <select> box generated by the optiontransferselect tag, so you can use the options property in javascript and if the options property is empty, it means that no option has been transferred by the user. I've not tried it but it should work
2) How can i get doubleList in action class?

I'm unsure what you mean here.

See the optiontransferselect tag to get more details about the tag...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: optiontransferselect tag problem