hi, I have a problem with accessing beans from within jsp pages when they are in frames. For example, I have a login.jsp which allows a user to login. If sucessfull, it returns a list of menu items. If the resulting page from the login.jsp is a simple page i.e. maintenanceMenu.jsp, then all works fine. However, if the resulting page is a frame i.e maintenanceFrame.jsp and one of the frames is maintenanceMenu.jsp, then I get the following error.
For all intents you can think of each frame as a separate browser instance. That is, each frame requires its own request-response cycle to interact with the server. Because you are storing your bean in request scope, it will only be available to the targetted frame. If you have something that must be rad by multiple frames, you will want to use session scope. IMHO though, the best strategy is to avoid frames when possible. Templating strategies make it simple enough to include common elements (such as menus) on multiple pages without using frames, making it rare when they are actually needed.