Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how database can be connected to html using jsp ?
Posted

1 solution

Your question made me swing :) Seems like you have just started programming.

Well database do not connect to HTML using JSP. Rather the flow is like

* JSP receives browser request
* JSP connects to Database using some connection string
* JSP emit HTML code using the data comes from Database and send back to the browser
* Browser shows the HTML back to the user

JSP is almost obsolete. There are MVC framework available that have isolated and simplified above flow.

My advice to you is to start with a good fundamental book
 
Share this answer
 
Comments
Member 11823521 14-Jul-15 3:27am    
YEAH..m infant to programming.
thanks fr correction.


can u tell me which book to use ?

Actually i have to connect a form to database to retrieve information when asked to and display it.

Can you help me in this .? how can i use jsp?
i have been told about tomcat use, but i dont know what it is and how to do all this.
Need help from beignning.

*i have created the form .:)
Thanks7872 14-Jul-15 3:28am    
Clear enough. 5+!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900