There are three tables in my JSP page say Table1, Table2 and Table3. I want to use Table1 at the time of loading the JSP page. Then I'm making an AJAX call, now after this I want to use Table 2 or Table 3 on the basis of a parameter flag. Can i achive this through layers? If yes, how can I do this... Is there any other way to acheive this functionality?