Click here to Skip to main content
16,016,962 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
i have created a one java script file in that i have written a html code ,ajax to call servlet .
in java servlet i have written a code for select query as to select data from database table and store this value in resultset
i want to store this resultset value in to javascript variable.
how i store it ???????
Posted
Comments
Sergey Alexandrovich Kryukov 7-Feb-12 0:15am    
What is "Java Script"? There is not such thing because Java is not a scripting language. Due to this confusion: I have to ask:

Where is Java and where is JavaScript in your question.

Please use "Improve Question" above and put it right...
--SA

1 solution

I'll suggest you to use `JSP` rather than using `java script` because the scope of `java script` is too little.

As there is no relationship between `java` and `java script` therefore you can't store the reference of `ResultSet` through a `java script` variable.
 
Share this answer
 

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