I am not very sure. it depends upon where you are running the
java script. if you are running javascript in server side you can connect to the database. this is possible in asp/iis but not in java. how to connect to database refer ASP documentation
But i think in java we cannot connect database using Java script. Because to connect to a database we need to load the database driver to the memory/runtime environment. but java script is running in script engine, i dont think script engine will allow to load the driver.
Measure twice cut once carpenter theory <br /> <br />Baiju <br />SCJCP, SCBCD, IBM-486, IBM-484, SCEA Part I