My primary web application is on apache, but sometimes I have to import some pages/data from tomcat server running on same machine. Now Ajax does not let me request data from tomcat because of "Single Origin Policy".
So how do i implement the import of information from tomcat? One solution would be to use iframes. However someone recommended using relative web addresses. How do you implement that?
Make use of the Apache Tomcat Connector (mod_jk). This really is accustomed to tell Apache that particular assets is going to be offered by Tomcat (similar to mod_php/ mod_perl, etc.). Your demands visit the same server and also you obtain the added bonus of having the ability to apply all Apache's stuff for your servlets.