Struts2 jQuery Autocompleter with select box

前端 未结 3 1827
轮回少年
轮回少年 2021-02-11 01:49

I\'ve used the Struts2 jQuery autocompleter for my Struts 2 application.

Here is my code:

JSP:

 

        
3条回答
  •  北海茫月
    2021-02-11 02:42

    This is wrong:

    
    

    You are feeding the autocompleter with a Map, not with an custom object built by yourself.

    An HashMap does not have any name nor id fields, instead it have keys and values fields.

    Start by changing that and see if it works:

    
    

提交回复
热议问题