Click here to Skip to main content
15,888,000 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,,

I have a Javascript Function. It contains some values right now i have hard coded it. But i need these values to be fetched from Db. So how will i call a Servelet from the Javascript. Also how the ArrayList from Servlet can be populated to Javascript?

Thanks in Advance!!
Posted
Comments
thanh_bkhn 13-Aug-13 10:50am    
You can use Java bean to do this. There are a lot of examples of how to use bean to get values from servlets.

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