Click to See Complete Forum and Search --> : Embed my website into another outside website


brianv
08-02-2005, 01:48 AM
I have a MySQL database and I use JSP to query and display results from this database into a HTML table. Another company would like to embed the results into their website. They are going to create the header and just want the table my JSP creates to be displayed within their page. They also want the URL to stay at their site.

This company uses ASP. I found some code on the internet in both JSP and PHP that essentially opens a website (using fopen) and loads the URL into a string. It then parses the string to be displayed in the output to create the new HTML page.

First of all, is there a way to do this with ASP.

Secondly, is this considered the best way to stream another website output into your own.

Thanks in advance.

lmf232s
08-03-2005, 03:30 PM
i would take the data returned from the query and create an xml file, then the other company can just access the xml file and format the data the way they want to.

For a simple example.
This is the xml file (http://www.w3schools.com/xml/simple.xml)

This is the xsl file (how to display the data) (http://www.w3schools.com/xml/simple.xsl)

and this is what it looks like (http://www.w3schools.com/xml/simplexsl.xml)