Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating file on a server through a jsp which is running on another server

 
sagar vedantam
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I am involved in a project which is used for alliances between different sites.
Suppose there is site 'A' which is content provider to site 'B'.
Site A maintain a database of list of sites who wants A's
content.Now site A is creating a software which generates an
html page with the links to A's site for site B(i.e in B's
site content of site A is displayed.
This software should store the html page on B's site.
i.e B' server.
This software is running on A's server and should store the
html page on B's server i.e Software will be running on A's
server and should store html file in B's server.
How should i store the html page from A's server to B's server?
Any one please help .......
Thanx
Sagar
 
Jesse Tilly
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If A and B are visible to each other, but relatively invisible to the outside world, NFS, Samba or any other network filesystem would work here.
If this is HTML, remember you're only writing URLs for a browser to locate, it shouldn't matter if the files that the HTML file refer to are located in the same place as the HTML file, so long and the links in the HTML are correct. Granted, this means you have to use fully qualified URLs, but it may make your life easier.
If the machines are distant, you may need to create a VPN for the network filesystem.
Jesse
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic