This is sample database creation through glass fish server using net beans ide , my instructions in this document will be meant for creation of database if you have proper server side code as middle ware .
Database connection instructions in net beans ide 7.1.2
1. creation of database and making of dynamic webpages
by vikas gunti
using "NETBEANS7.1.2 IDE"
NOTE 1:THIS IS POSSIBLE ONLY IF U HAVE VALID JSP PAGES
NOTE 2: WHILE CREATING UR TABLE NAME AND COLUMN NAME GIVE THEM NAME AS PREASENT
IN UR JSP PAGES.
NOTE 3: U HAVE TO INCLUDE A "FORM TAG" IN UR REQUIRED WEB PAGES (FOR EXAMPLE
"<form method= "get" action="1.jsp"/">
1)file -> new project
2)java web ->web application-> new project name->click next
3)enter project name( dont change any other options)->click next
4)again click next ->click finish
5)click on the project node( see at left side menu in projects slide)
6)double cilck the project node ->open webpages folder (wich is inside ur
project node)
7)copy the html files into webpages folder along with ur jsp pages.
creating the database and connection:
1)goto services (which is in the left side menu )
2) double click on databases then goto javaDb
3) right click on the java DB node ->create database
4) then give ur database name , username password and click "ok".
5)then a dabase is created , (it will be like beraked switch)
6) rigth cick on the database node ->click connect (now ur are connect to ur
databse)
creating tables and populating tables:
1)double cick on ur database node then database schemas will appaer
2)cick on app schema then three folders will appear
"tables","views","procedures"right cick tables ->create tables
3)give ur table name and cilick on "add columns".(add any number of columns it
depends on ur requrirement).
4) when u click on add columns IDE will ask u for colunm name and constarint
name assign them as u like .(its better to dont touch any constaraint name)
5)click on "OK" tables are created .
6)double cick on tabels ur created tables will appear then right click on tables
->view data
7) then tables with empty boxes will appear then cick on "+" symbole which just
abovo to ur tables then it will prompt u to enter data to ur columns.give ur
desider data.
then cilck "ok". thus ur tables are populated with data.
running of html files :
2. 1)goto web page
file .
and right click on ur desidred html page and cick on run run
now ur will be taken to browser and ur web pages will open . !!!!!!!miracle now
ur html pages dynamic!!!!!!