i am using struts-2 2.0.11.2 version with eclipse europei have 2 jsp page
news-alarm.jsp and category-list.jsphere is news-alarm.jsp
<s:form id="newsAlarmForm" name="newsAlarmForm" action="newsAlarmSave"
enctype="application/x-www-form-urlencoded; charset=UTF-8"
acceptcharset="UTF-8"> <s:hidden name="newsAlarm.id"
value="%{newsAlarm.id}"/> <s:hidden name="newsAlarm.version"
value="%{newsAlarm.version}"/> <table> <tr> <td>
<s:textfield label="%{getText('newsAlarm.name')}" name="newsAlarm.name"
value="%{newsAlarm.name}"/> </td> </tr> <tr>
<td> <s:select value="%{newsAlarm.channel.id}"
headerKey="0" headerValue="%{getText('please.select')}"
label="%{getText('newsAlarm.channel')}"
list="channelList" listKey="id" listValue="name"
name="newsAlarm.channel.id"
onchange="dojo.event.topic.publish('showDetail'); return false;" />
</td> </tr> <tr> <td> <s:url id=
"d_url" action="getCategoryList"/> <s:div href="%{d_url}"
theme="ajax" showLoadingText="false"
listenTopics="showDetail" formId="newsAlarmForm">
</s:div> </td> </tr> <tr> <td>
<s:submit type="button" value="submit"/> </td> <td>
<s:submit type="button" action="newsAlarmBrowse" value="cancel"
onclick="form.onsubmit=null"/> </td> </tr> </table> </s:form>
when channel select list change ajax call getCategoryList action and this
method return category-list.jsp into div(listentopics=showdetail)
here is category-list.jsp
<[EMAIL PROTECTED] file="/init.jsp"%> <s:optiontransferselect
formName="newsAlarmForm" name="categoryList"
id="newsAlarmForm_categoryList" list="categoryList"
listValue="name" listKey="id" leftTitle="xxxxxxx"
rightTitle="yyyyyy" doubleId="newsAlarmForm_categoryList2"
doubleName="categoryList2" doubleList="categoryList2"
doubleListValue="name" doubleListKey="id" size="5"
doubleSize="5" allowAddAllToLeft="false"
allowAddAllToRight="false" allowUpDownOnLeft="false"
allowUpDownOnRight="false" allowSelectAll="false" />
when i submit news-alarm.jsp i cant get value of categoryList2 which is
s:optiontransferselect> in categoryList2 page. everytime categorylist2 value is
null. How can i solve this problem?
_________________________________________________________________
Windows Live Messenger'ın için Ücretsiz 30 İfadeyi yükle
http://www.livemessenger-emoticons.com/funfamily/tr-tr/