I want my server to render a remote JSP file and replace its variables with server given. The content of the JSP file is like below.
<c:import var="alertContent" url="http://www.google.com/example.jsp"/>
JSP files are compiled on the server so the you cannot use the URL as JSP file. You will only get the rendered HTML output.
So the output you are getting is working as it supposed to work.