We can run SQL queries directly in JSP page using "sql" tag.
Suppose we have a 'postgres' database, with below credentials:
db:'test'
user: root
password: 123
table name: user which have a column 'userName'.
Below is the JSP code to make db connection and get data from table:
0 Comment(s)