Tags » JSP

How to create HTML dynamic table in JSP from ResultSet with unknown columns ?

Use below lines of  code to get columns count and name  from ResultSet.
Metadata keeps all information about columns and we retrieve as below


ResultSetMetaData metaData = resultSet.getMetaData();
//No of columns in resultset
int columnCount = metaData.getColumnCount();
//Column Name where i is column number
String columnName=metaData.getColumnLabel(i)

… 526 more words
JDBC

Implement Auto suggest in JSP using Ajax call in Jquery

This solution is: When user enters any data on the input field, the entered data is taken and using ajax call servlet method will be triggered, which returns the matched records in DB as JSON string. 591 more words

Ajax

Ajax Call in JSP to fetch and display data from Database

We knew that with the help of JQuery we can dynamically display data on a webpage. So here in this post we are using  JQuery to make an Ajax call to Servlet, and display the returned data as a table on JSP web page. 797 more words

Ajax

Using property file value in jsp

Sometimes we need to use property file value directly into a JSP without using on the fly request to get the data. To achieve this we are going to use… 95 more words

Jsp

Sample project using Plain JavaSE - Episode 1

Hi, this is the initial post of a series where i’ll be publishing some samples showing how to develop web applications with Java technology.
I’ll try to start with a very simple example and make some progress visiting several APIs/Application Servers  from the JEE stack. 213 more words

Java

Send Emails through JSP(Java server Page)

Hi , Every one Today we are going to learn a simple jsp code to send email .

There might me n no. of situations where in you may require to a page where in you need to send email. 113 more words

Java