By setting the scope to "page" you are forcing the instantiation of a new 
bean.  Set scope to "request" in both jsp pages if you want to use the 
previously instantiated bean.

Jim Gillaspy

-----Original Message-----
From:   Brian Zimmer [SMTP:[EMAIL PROTECTED]]
Sent:   Thursday, January 11, 2001 7:33 PM
To:     JRun-Talk
Subject:        <jsp:useBean>

If I try to use the following syntax:

<jsp:useBean id="message" type="PublishedMessage" scope="page">
        <jsp:setProperty name="message" ...>
</jsp:useBean>

it seems as though JRun just ignores everything in the body.  I looked
at the generated source code and that is indeed the case.  How can I use
this tag with an already instantiated bean?  If I switch it to class, it
checks to see if a bean by that id is null, if so then it creates and
sets properties.  If it is not null, then it just skips the setting
altogether.

thanks,

brian
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to