Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

onValidate

 
V L Deepak Kotla
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Iam developing an application in JSP.I have to display the ports in a drop down menu when a user selects the Country.I actually did this using java Script.There I just hardcoded the ports related to the countries. It is working. But I want the data to be collected from Database.and at the same time if a particular port is not found the user shud be able to add a port for a country.Kindly please give the type of solutions available for this problem.I would like to know if we can use database connectivity in javascript code?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64973
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, you would need to use a server-side language for the database connectivity. Javascript cannot provide this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic