JSP usingBean scope question
I have 4 JSP pages
-
index.jsp is a standard web index page. Index.jsp includes build.jsp to initialize the web service as well as header.jsp (to display a form with a dropdown. Users can select a value from that form and submit the form to formControl.jsp.)
-
build.jsp - This jsp is included in index.jsp before HTML elements. It creates all the necessary java beans and sets the values.
-
headerBar.jsp - This jsp is included in index.jsp. It contains a logo image as well as a shape with a dropdown. This form is submitted to formControl.jsp. This headerBar.jsp page is included in the index.jsp and formControl.jsp pages for reuse.
-
formControl.jsp - Takes a parameter from the form in headerBar.jsp and processes the value.
I have two useBean statements in build.jsp that creates a web service and my beans. Whenever I set the scope to "request", the dropdown in headerBar.jsp displays whatever values I want. However, when I set the scope to "session" the dropdown has no meaning.
I do not understand what is going on. Can someone please explain?
Thankyou, Lucas
a source to share