Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am developing web application using jsp. I have developed external jscript file.I want to pass the database queries through javascript to check login credentials. How to do that? I am using PostgreSQL server for storing database.

What I have tried:

I am new to jascript. So for checking credential i have written code in jsp.
Posted
Comments
W Balboos, GHB 20-Sep-17 11:15am    
javascript is for client-side only; JSP has serverside access. Personally, I use javascript for client; php for server; and forms or AJAX, as appropriate, to transmit the information for the query.
j snooze 20-Sep-17 17:21pm    
I can see passing parameters through javascript, but passing an entire query? That seems like a security issue waiting to happen. You sure you want to do that?

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