Hi there. I've just started developing with JSP's and while I've got my first 
subsystem up and running, there are just a few things that puzzle me a little.

I would like to set up a series of JSP pages which are controlled by a servlet, using 
the MVC pattern. Depending on the nature of values in the incoming request object 
determines which java beans are created and of which particular scope, and to which 
JSP the request is redirected.

Now my question is, how do other JSP's obtains access to these objects? If an object 
is REQUEST_SCOPE, is it bound simply  to the request object, accessed by a 
request.getValue() call in the chained JSP? Similarly, is a SESSION_SCOPE object just 
bound to the HttpSession object, accessed in the cheined JSP by session.getAttribute()

However how are APPLICATION_SCOPE beans accessed by other JSP's. How do you create a 
bean and make it APPLICATION_SCOPE? Similarly, can SESSION_SCOPE beans be accessed via 
the PageContext?

Finally what is the relationship between ServletContext and PageContext when mixing 
servlets and JSP's? Can beans instantiated and placed in the servlet context be 
accessed by the PageContext of JSP's.

many thanks,

Paul

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to