How to use angularjs with struts 1.x

强颜欢笑 提交于 2019-12-01 17:25:29

On the java side you can also try to use Gson library that allows you to parse string to and from json, but struts1 generally won't fit well with angularjs, if you remove the form on java side, than makes no sense to keep struts1. And if no possibility to remove struts1, than just keep struts1 for existing functionality and start using struts2 for new screens where angularjs is applied. It will be much easier cause the json from angular post will automatically be bound to the bean object that has to match to json properies format and name.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!