Hello guys...!!
I'm having a question here.

Actually, is it wrong if my flow use this one;

1) FrontPage have a link
2) Link call ajax (call a Servlet)
3) Servlet Request some data from DB and also this Servlet assign some session variables
4) Forwarding the page using RequestDispatcher --> actually calling another jsp
6) JSP rendered and returned into ajax call
7) Interface updated obtained.

Is that correct way to go through?

OKay, let me start from number 2-Link call ajax :
(this one is having no problem at all, ajax call is worked)
Code:
$.ajax({  
            url: 'refine-datatable-bank',  
            success: function(data){  
                alert('working');  
                $('#middle').html(data);  
            }  
        } );
Whereas the refine-datatable-bank is the url which is calling for a servlet.

Then, the number 3-Servlet Request data from DB ( i just put 'X' variable, we assume it's database data okay?)
and then forwarding 'em into the interface.
Code:
response.setContentType("text/html;charset=UTF-8");  
        PrintWriter out = response.getWriter();  
  
        int x = 28;  
        HttpSession session = request.getSession();  
  
        try {  
            session.setAttribute("x", x);  
            getServletContext().getRequestDispatcher("table/bankTable.jsp").forward(request, response);  
        } finally {  
            out.close();  
        }
Okay, then the last number 6-Rendering the value obtained from session;
Code:
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>  
<%@page contentType="text/html"%>  
<%@page pageEncoding="UTF-8"%>  
<table>  
    <tr>  
        <td><c:out value="${x}" /></td>  
    </tr>  
</table>
But why it doesn't give me a returned anything ??
I returned me nothing....
which portion that I forgotten?