tags:

views:

355

answers:

2

the optiontransferselect in the JSP is not populating the doubleList values. though the value is printed on the JSP as an iiterator .

the double list is a List <Editor> .

 <pre><s:optiontransferselect 
         headerKey="-1"
         headerValue="---Please Select---"
         doubleHeaderKey="-1"
         doubleHeaderValue="---Please Select---"
         leftTitle="Availabl"
      rightTitle="Selecte"
   theme="simple"
         name="availableScript"
         id="availableScriptId"
         list="availableScriptList" 
         listKey="id"
         listValue="name"
         size="10"
         doubleSize="10"
         doubleName="selectedScript"
         doubleId="selectedScriptId"
         doubleList="selectedScriptList"
         doubleListKey="id"
         doubleListValue="%{name}"
         allowUpDownOnLeft="false"
   allowUpDownOnRight="false"
   allowSelectAll="false"
   allowAddAllToLeft="false"
   allowAddAllToRight="false"

  /></pre>

Not sure what the issue is .I am using struts2.0.11

A: 

You need to include

<s:head/>

in the head of the JSP page for this to work.

Vincent Ramdhanie
A: 

thanks it works now .