Currently I am doing struts up-gradation task (struts2.0 to struts2.5). I want to replace struts dojo tag with struts-jquery.
Here I am facing some issue when replace struts-dojo autocompleter to struts-jQuery autocompleter.
Getting below response from server :
[
{
"firstName": "Bulwark Technologies LLC",
"partnerId": 925
},
{
"firstName": "Bulwark Technologies LLC1",
"partnerId": 926
},
{
"firstName": "Bulwark Technologies LLC2",
"partnerId": 927
}
]
For displaying at client side I am using Struts2-jquery-autocompleter -
<sj:autocompleter href="%{urlpartnerList}" list="%{partnerNameListBeanStruts2}" listValue="firstName" listKey="partnerId"/>
I am getting "undefined (multiple times - based on result found in query at server side)" in textbox.
Could some one please help here? Thanks in advance.

My suggestions in the comments lead you in the wrong direction, with this
<sj:autocompleter/>it should work perfectly fine without changing it the server response. I messed up with the various options, that are available for this tag.The trick with this autocompleter is, that the
listValueis shown as selection in the visible text field but thelistKeyis used as value in a hidden field. And this hidden field will be used to send the value back to the server. That should also answer your question:The
<sj:autocompleter/>will create following html code:Thus you only have to set the
listKeytag with the list property name you want to have as a response.