I am building dynamic HTML pages in a servlet from a bean data. At certain points that servlet should send the data to another servlet or JSP page to build the dynamic HTML page in a new window (modal). In details, if the user clicks a button in the servlet to send the form data to the server (bean), then the response from the server is a block of data with the form name. Now the thing is the servlet has to check the form name and create the dynamic HTML page in a new modal window in doPost method. By the way, the dynamic creation of the HTML pages are done in a seperate bean.
The next thing is, the newly built JSP page should do the similar thing as the Servlet. That means it should check the form name and if necessary create a new modal window with a new dynamic HTML page (JSP). The number of levels of modal windows might be atmost 6.
I am now showing all the dynamic pages in a single servlet mainly refreshing and building the new page in a single window. but I have to create new modal windows for different levels of forms.
I really appreciate any help from you guys. Help me !!!