I did some testing with JWS 2.0 with jsp:usebean tag.
<jsp:usebead id="test" scope = session class="TestBean"/>
becomes:
...
TestBean test = (TestBean) session.getValue("test");
...
This made sense because i could use same logic in servlet and share the same
object between servlet and jsp page (like a connection to DB)
But then i ran a test with jswdk 1.0 the same tag generates:
....
TestBeab test = (TestBean) pageContext.getAttribute("test",
PageContext.SESSION_SCOPE);
....
When i redirected from jsp to servlet i found no objects tied to session
object. I added my own call to session.putValue("test", test);. I got my
object from session, but nothing from usebean generated code (I even did
session.getValueNames and i ony got mine). I guess pageContext keeps them
somewhere else???
I guess we can't share objects when using jsp:usebean tag??
Murray
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html