Ok, my bad. Notice that the key is
org.apache.struts.taglib.Constants.BEAN_KEY instead of
org.apache.struts.taglib.html.Constants.BEAN_KEY. I was missing the "html"
node in the package. Boy I'll be glad when all that source is gone.

Thanks.

Wayne



-----Original Message-----
From: Young, Wayne [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 10:02 AM
To: Struts-Dev@Jakarta. Apache. Org (E-mail)
Subject: version <bean:write> that doesn't require name


I've been trying to make a version of <bean:write> that doesn't require the
"name" attribute and just uses the default form bean if it isn't supplied.
(like the HTML tags work)

I've tried changing the name to Contants.BEAN_KEY just like in BaseFieldTag.

        // Look up the requested bean (if necessary)
        if ("".equals(name) || name == null) {
          name = org.apache.struts.taglib.Constants.BEAN_KEY;
        }

I always get the message that the bean isn't found in the pagecontext. Any
ideas what I need to do to resolve this?

Thanks.

Wayne
[EMAIL PROTECTED]

Reply via email to