I know Java Beans can be defined in a scope of page, request, session or application, and it exists as attributes of scope object.
I'm using MVC model, when servlets invoke EJBs to get the data, it puts data into the attributes of the scope Object(like session or request), and forward it to JSPs, the JSP then access the scope objects to display data.
I wonder, since Java Bean defined like <jsp:useBean id='..' class='...' scope='session'> still exists in session object, do I need to just use this tag to get the Java Bean instance in Session Object or instead access the session object to get the Java Bean?
any help appreciated!!!
-
questions about the use of Java Beans (1 messages)
- Posted by: Robert Strong
- Posted on: October 03 2002 17:23 EDT
Threaded Messages (1)
- questions about the use of Java Beans by Gal Binyamini on October 03 2002 20:12 EDT
-
questions about the use of Java Beans[ Go to top ]
- Posted by: Gal Binyamini
- Posted on: October 03 2002 20:12 EDT
- in response to Robert Strong
You can use <jsp:useBean .../>. Of course, you can also access the session object directly.
Gal