I believe that I can do it as per the suggestion from "Bear".
Before going to
test with a remote server,I started trying with the abstract class URLConnection
in different web-applications in the same server.
But,when I tried to getInputStream of a jsp from a servlet ,I get the processed data from jsp including the <html> tags.
Output:<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
CTlog
</body>
</html>
How to avoid the tags from processing.?