I have a control servlet that forward the request to the model servlet.The model servlet retrieves results from a database and forward the display to the jsp.how do i display the result set in the jsp?Do i need to write the sql statement again in the jsp?
Share
No, you use the request attributes map to pass data from the controlling Servlet to the JSP page.
Example. Controller Side:
Example. JSP page: