This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "onValidate" Watch "onValidate" New topic
Author

onValidate

V L Deepak Kotla
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 61084
    
  66

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]
 
 
subject: onValidate