Loading react application in a jsp page

≯℡__Kan透↙ 提交于 2020-02-25 13:14:30

问题


We have our main application page in jsp and we built another application in reactjs and needed to embed the react application in jsp page, main jsp page should get handle of the react form submit action and able to submit the form for validations and for actual submission.

Currently able to embed the react application using iframe ( which could be a security issue) in main jsp page iframe document.

Jsp Page loads body content via iframe -> inside this iframe document -> I am embedding react js application using another iframe.

But not able to do submit action from main jsp page, tried getting handle of iframe from window but nothing works, any suggestions will be helpful.

来源:https://stackoverflow.com/questions/59370845/loading-react-application-in-a-jsp-page

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