struts2 jquery tag select not loading data

后端 未结 2 1651
陌清茗
陌清茗 2021-01-24 14:33

I am trying to use tag to render my list in Struts2 jsp.

At the same location I have used a tag as well

Data is getting populated

2条回答
  •  无人及你
    2021-01-24 15:04

    Solved.

    May this be of some help to others,

    All I had to do was change the web.xml as below:

     
        struts2
        /*
      
      
    

    Earlier I had set the filter as

      
        struts2
        *.action
      
      
    

    So the struts2-jquery tag could not find the corresponding .js files

    Solution: change from *.action to /* Thus, please be sure to check the web.xml for such anomalies which often go overlooked as in my case.

提交回复
热议问题