struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mansou...@yahoo.com
Subject Re: Accesssing a bean from a jsp without struts tags
Date Fri, 06 Apr 2007 21:43:26 GMT
OK, let me include more details, may be someone will understand what I 
am talking about.
I have a list that belongs to  a Bean that's wet in an action class.

public AccountBean getAccountBean() {
    return accountBean;
}

AccountBean has an ArrayList<Invoices>  calles invoices.

now im my jsp, I need to display this in a datagrid, I am doing this, 
but it's not working:



<dg:dataGrid items="${accountBean.invoices}" var="inv" name="datagrid1" >
<columns>
<column>
<header value="Name" />
<item value="${inv.statementDate}" />
</column>
</dg:dataGrid>


that's the error  I am getting:

According to TLD or attribute directive in tag file, attribute items does not accept any expressions
	org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:518)
	org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:421)


Any Idea ??




mansour77@yahoo.com wrote:
> I have a bean that is set in an action class. I can access it using 
> struts tag, but what do I do if I need to access it from somewhere else ?
>
> for example, if I need to access it from a list iterator.
>
> Thanks.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message