For the record, my mistake was in use the "scope" attribute instead of the
"toScope" attribute.
----- Original Message -----
From: "Keith Bacon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 06, 2001 1:38 PM
Subject: Re: bean:define, bean:write
> My guess is that jsp:define creates it if not there
> but struts bean:define doesn't.
>
>
> --- David Corbin <[EMAIL PROTECTED]> wrote:
> > I thought that bean:define takes care of that....
> > ----- Original Message -----
> > From: "Keith Bacon" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, September 06, 2001 11:18 AM
> > Subject: Re: bean:define, bean:write
> >
> >
> > > Is it because you haven't done a
> > >
> > > request.putAttribute("pageTitle", yourObject);
> > >
> > > in your ActionForm?
> > >
> > > Keith.
> > >
> > >
> > > --- David Corbin <[EMAIL PROTECTED]> wrote:
> > > > Why does this jsp fragment generate an exception
> > > >
> > > > javax.servlet.jsp.JspException: Cannot find bean pageTitle in
> > scope
> > > > request
> > > >
> > > > --cut--
> > > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> > > > <bean:define id="pageTitle" value="foobar" scope="request"/>
> > > >
> > > > <HTML>
> > > > <HEAD>
> > > > <TITLE><bean:write name="pageTitle"
> > > > scope="request"/></TITLE>
> > > > </HEAD>
> > > > . . .
> > > >
> > > > --cut--
> > > >
> > > > Thanks
> > > > David Corbin
> > > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Get email alerts & NEW webcam video instant messaging with Yahoo!
> > Messenger
> > > http://im.yahoo.com
> > >
> > >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger
> http://im.yahoo.com
>
>