Struts2 jQuery Autocompleter with select box

前端 未结 3 2078
忘了有多久
忘了有多久 2021-02-11 01:41

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

Here is my code:

JSP:

 

        
3条回答
  •  情书的邮戳
    2021-02-11 02:19

    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:

    
    

提交回复
热议问题