On my starting page, I have instantiated a bean with scope="session" and
called it "Person".  On this initial page, I can call its method
"getPropertyValue" and see valid data.  When I create another page (which
gets loaded after this initial page, so no race condition should be created)
I am having problems being able to reference "Person".  I have tried what
seems like every possible combination of attributes... what am I doing
wrong?

Example -- Initial Page:
----------------------------------
<%@page language="java" import="com.silknet.ebiz.silkmodels.BusinessObject"
errorPage="errorpage.jsp"%>
<jsp:useBean id="Contact" scope="session"
class="com.silknet.ebiz.silkmodels.BusinessObject"/>
<jsp:useBean id="Person" scope="session"
class="com.silknet.ebiz.silkmodels.BusinessObject"/>
<%
        String eKey = request.getParameter( "key" );

        Contact.setName( "Contact" );
        Contact.setKey( eKey );
        Contact.getData();

        Person = Contact.searchEntity("Parent");
        out.println( Person.getPropertyValue( "lastName" ) );
%>

Subsequent page:
--------------------------
<%@page language="java" import="com.silknet.ebiz.silkmodels.BusinessObject"
errorPage="errorpage.jsp"%>
<jsp:useBean id="Person" scope="session"
class="com.silknet.ebiz.silkmodels.BusinessObject"/>

<%
        out.println( Person.getPropertyValue( "firstName" ) )
%>


I get "null" back for the value, and the page is compiling with no errors.
I am using JSWDK 1.0.1.... could I have a configuration problem, perchance?

===========================================================================
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

Reply via email to