Hi Lionel and Wendy,

     Thanks a lot for your help and guidance.  It is
good to start learning Struts tags.

--Caroline

--- Lionel Port <[EMAIL PROTECTED]> wrote:

> <bean:define id="activityForm" name="ActivityForm"
> type="
> com.mypackage.ActivityForm"/>
> 
> On 3/9/06, Lionel Port <[EMAIL PROTECTED]>
> wrote:
> >
> > As wendy said you need to follow bean:size with
> something like:
> >
> > <bean:write name="size"/>
> >
> > As for the scriptlet version. Sorry the
> ActivityForm variable is not
> > defined in the page scope. If you want to access
> it using scriptlet you
> > would need to do bring it out of the request or
> session scope first,
> > something like:
> >
> > <bean:define id="activityForm"
> name="ActivityForm"/>
> > <%=activityForm.getBusinessCollection().size() %>
> >
> >
> >
> > On 3/9/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> > >
> > > On 3/8/06, Caroline Jen <[EMAIL PROTECTED]>
> wrote:
> > >
> > > > <bean:size id="size" name="ActivityForm"
> > > > property="businessCollection"/>
> > > >
> > > > does not display anything (it looks like the
> > > > <bean:size ...> does not exist.)
> > >
> > >
>
http://struts.apache.org/struts-taglib/tagreference-struts-bean.html#bean:size
> > >
> > >
> > > The 'id' attribute is defined as "The name of a
> page scope JSP bean,
> > > of type java.lang.Integer, that will be created
> to contain the size of
> > > the underlying collection being counted."
> > >
> > > Have you tried following <bean:size> with a
> <bean:write> to display
> > > the 'size' bean?
> > >
> > > Also make sure that you defined the bean taglib
> in your JSP.  If you
> > > view the source of the HTML page, is the tag
> coming through as it was
> > > in the JSP?  Put some text before and after the
> <bean:size> to see
> > > what's happening.
> > >
> > > --
> > > Wendy
> > >
> > >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > >
> > >
> >
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to