File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes onValidate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "onValidate" Watch "onValidate" New topic


V L Deepak Kotla

Joined: Mar 02, 2006
Posts: 1
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

Joined: Jan 10, 2002
Posts: 60810

No, you would need to use a server-side language for the database connectivity. Javascript cannot provide this.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: onValidate
Similar Threads
ANT and Eclipse "Java Build Path"
Mysql jdbc connection takes lot of time
Query about 'Port' Number??
Port scanning Vista
Port numbers