This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I have three file html, servlet and jsp. When i print html contents using servlet after user clicking on submit button then the html file(first file) content are replaced by the html_content of servlet.But if the servlet also forwords the request to JSP then what happens to the htnl_content in the servlet??
Why to worry about things in which we dont have control, Why to worry about things in which we have control ! !
Bear Bibeault wrote:What are you actually trying to accomplish? What you are doing doesn't follow any established pattern of web application structure.
I understand what you are trying to say but i was just trying to do different things & it happened that i had html in the servlet and that servlet also forwards the call to JSP. So this question came to me ... what happens to the html of the servlet.
As Bear has already pointed out - its against any established pattern of web application structure - so I would not end up using some code like that in a real application. (Basically under usual circumstances I would not have RequestDispatcher.include() in my Servlet!!)