• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Including page from other server !!!

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I'm so happy! And I wish to make this tiny ad happy too:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic