IN my project , I have JSP app and Angular 14 App which are running parallels on same tomcat . Now , I want to target index.html of Angular from JSP page So whenever JSP page will call it will automatically call index.html inside and load the index.html . Kindly provide your input if someone has any idea.
I tired couple of situation .
Provide the static file index.html path in main.jsp file . like <%@include file = "./project/index.html"> but it is not working because diffcult to provide index.html path hence both of JSP and Angular project running separately . Yes , Above concept worked once put angular folder inside JSP.
Loading like below
// JavaScript code here $(document).ready(function() { // Load the content dynamically $( #contentDiv ).load( /project/index.html ); });
Few lines of HTML code and then
This working first step like hitting index.html but internal route is not working . Yes , I cross checked base url property . I found in analysis that route does not work in Jquery .