In your case its better if you make a POJO( Plain old java object), while retrieving the data in the result set instantiate the pojo and pass that pojo object to jsp.
Type: Posts; User: aprabhat
In your case its better if you make a POJO( Plain old java object), while retrieving the data in the result set instantiate the pojo and pass that pojo object to jsp.