I have been doing a lot of reading, but I want to make sure what i am thinking is possible. I have a
servlet that instantiates a bean, and then forwards control on to a
JSP. I am using:
req.setAttribute("RequestBean", rqBean);
RequestDispatcher dispatcher =
getSevletContext().getRequestDispatcher("main.jsp");
dispatcher.forward(request, response);
Now in main.jsp, as long as I use <jsp:usebean id="RequestBean" I have the same instance of the bean and can use the get and set property methods accordingly to get the information that was put there by the servlet, correct?
Now this JSP will include one of 8 different HTML files, depending on some predefined criteria (if criteria1 then include file1.html, if criteria2 then include file2.html, etc...). The HTML files are basically different arrangements of HTML Framesets and Frames. The <src attribute on the frames in the HTML files I want to be another JSP file, like:
<FRAME src="frame.jsp?quadrant="1">
Now can I still access my original bean okay in this new jsp if I use the same <JSP:usebean id="RequestBean" in the frame.jsp? And can I then get my quadrant parameter from the response object created by frame.jsp?
Lastly, will calling a JSP (from a servlet), with that JSP including an HTML file that uses another JSP page actually come together and work and create the page that I need, that is, a page of various frames, with each frame holding different dynamic content based on the last JSP and the bean I am using.
Hopefully that was clear. If anyone could let me know if this design will work and possibly provide some hints/ideas I would greatly appreciate it.
Thanks in advance
Brian