Say I have a
JSP that has a form that gets submitted, a controller
servlet that handles the request and forwards it on to another servlet to handle the logic. This servlet can read from the database (or probably use a class to handle the database logic more likely), but it would also populate a bean that would be used by the next JSP to use in order for its display.
If I understand what I have been reading about MVC architecture is that the last bean used for the display should be a page bean. Doesn't a page been only have scope within the page? How could I populate it in the servlet and pass that to the last JSP as a page been. Wouldn't I have to put it in the session to really make it available to the last JSP page?
Thanks for the help- I'm really trying to understand this design
pattern!
Brian