Hello all,

    This is probably a simple question (hopefully) for you all.
I am writing a tag that is similar to jsp:useBean.

This new tag needs to be able to make an object available as a scripting
variable.
example:

            <mytaglibs:define id="organizationsBean" scope="session"/>
            <% String organizationId = (String)
organizationsBean.getColumn("ORGANIZATIONID"); %>

The DefineTag class retrieves the object and places the it in the
pageContext (I've tried APPLICATION, PAGE and REQUEST scope), but when I
run this, I get the following error:

"... Undefined variable or class name: organizationsBean
                 String organizationId = (String)
organizationsBean.getColumn("ORGANIZATIONID"); "

However, when using jsp:useBean, this works:
            <jsp:useBean id="organizationsBean"
type="com.organizations.OrganizationsBean" scope="session"/>
            <% String organizationId = (String)
organizationsBean.getColumn("ORGANIZATIONID"); %>

What does jsp:useBean do behind the scenes to make the variable
accessible??

Thanks,
    Pete
begin:vcard 
n:;
x-mozilla-html:FALSE
org:<BR><IMG SRC="http://www.irista.com/logo/irista.gif";><BR><BR><FONT Color=#000080><FONT SIZE=2><B>Bringing Vision to Your Supply Chain
adr:;;;;;;
version:2.1
end:vcard

Reply via email to