Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Including page from other server !!!  RSS feed

 
Ganesh Bhat
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a problem calling a serverpage from other server.
The JSP Code : File name : jsp1.jsp :
<jsp:include page"http://content:900/serverpage1.htm" flush="true"/>
The above JSP file "jsp1.jsp" is in Weblogic Commerce Server and is called with address :
"http://content:7501/jsp1.jsp"

If I am replacing the above link in the "jsp1.jsp" with the one in the same port as the "jsp1.jsp", it is displayed.
Can please anyone say me what is to be done here. And if my above approach is wrong .. can you please suggest me a way.
Thank you !!!
Regards,
Ganesh
 
Rehan Malik
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From what I've seen, you arn't given the capability to include a file on another server. The file that you are attempting to include must reside on your server. If you attempt to do so, it will automatically look for a folder or file starting with the URL you specified that resides ON your server.
 
Manas Ahlaad
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the server searches for the url thinking it as a resource in the default public directory . If you have to include a html page from other server you ay write a java class which performs the functionality of getting html page and storing that in the public directory and you can include that in your JSP.
Thanks

Manas Ahlaad
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!