after that step how can a servlet proccess next request if output had been forwarded to JSP and all controls have been left with a Servlet?
I have no idea what you are asking here.
The sequence is actually pretty simple:
1) When a URL is entered, the servlet gains control and performs whatever processing it needs to do. The servlet produces
no response output.
2) It forwards to a JSP page which renders the HTML/Javascript to be sent to the browser, including any form controls, links and so on. Any info that the servlet needs to pass onto the JSP are stored (by the servlet) as request attributes which the JSP can easily retrieve.
In best case, the JSP contains
no Java. JSTL tags and custom actions should be used in place of scriplets.
3) Once the page is rendered by the browser, the user initiates any action by selecting links or submitting forms, which brings us back to step 1.
[ July 20, 2004: Message edited by: Bear Bibeault ]