Since you're doing a dynamic include, you should declare the bean somewhere
at the beginning of the included jsp. Just copy the <jsp:useBean> tag into
that file and you should be allright.
zm.


-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Ewan Taylor
Sent: Thursday, January 17, 2002 7:30 PM
To: [EMAIL PROTECTED]
Subject: bean props from an included page...


hello there...

i am having a problem getting bean properties from an included page:

if anyone could give me any pointers on why i can't access the bean
props from the included jsp

the web container is weblogic 5.1 sp10 running on win2000

the code for the top-level page is:

<%@page contentType="text/html"%>
<%@page import="beanstore.beans.*" %>
<html>
<head><title>Nugget</title></head>
<body>
hello example_page
<br>
<jsp:useBean id="browser" scope="session"
class="beanstore.beans.browserCapabilitiesBean" />
<jsp:setProperty name="browser" property="kiosk" value="true" />
<jsp:setProperty name="browser" property="entryPage" value="here" />
<jsp:include page="/test_jsp/dyn_nav.jsp" />
<br>include should be above:
</body>
</html>

and the include page contains:

INCLUDED START:<br>
kiosk=<jsp:getProperty name="browser" property="kiosk" />
<br>
entryPage=<jsp:getProperty name="browser" property="entryPage" />
<br>INCLUDED END:<br>


any help as said previously would be appreciated...


cheers

the monkey

=========================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to