Hi all, Is it possible to Read from a local Database without running your server? I want a simple html page and I want to use java or any other technology to read fields from a database on the same computer. The user will just open the page and the field values will be in the combo box... bingo! How to do this?? Thanx in advance
Hi, Since your post is in java forum. Let's me try to answer using java technology. Q: "Is it possible to Read from a local Database without running your server?" A: JDBC is the answer. Write a java code which connect to database to get the connection and fectch the data. Q: Regarding html page generation. A: If you are specific about generation of HTML. You can generate an HTML page by running the your code and open the same generated file in browser. else write swing applicaition to display the output locally. Well i guess you got the answer for what you are looking for. If in case no, let me get updated with more info about what you are looking for. -Arun
I would say NO. Because, if he is serving up HTML using a web server, and wants to read and keep the information from the DB beforehand, then he needs to run a Java application first to do the JDBC. Now, if he ran a Java application outside of his web server, it would be in a separate sand box. He would need to do some kind of remote programming calls to get it into the HTML page when he shows it.
"It is almost always answered in the API" - Murali Nanchala
You ARE starting the Database Server in single-user (stand alone) mode by specifying it in the classpath. But I think the original question was whether JDBC could be done withhout starting the web server. Correct me if I understood it wrong.
Do you want an application to do the following: 1. Do DB operations and get some values 1,2,3.. 2. Build an html page in the application itself and open the html through raw Java alone. 3. Whether your starting point is HTML or a Java application? 4. Let me assume the starting point is Java. I think you can build an html with all the tags embeded in the coding. 5.Using Runtime we can open the html page. Is that OK? 6. Sorry if I had not understood your requirement.