Accessing a Bean from a bean using EL with STRUTS 2 - I really need help

2007-04-07 Thread mansour77
All I am trying to do is to retrieve an account from A DB and using taglib (data grid) to display the associated invoice with this account. Should this be a two-days task. Maybe something wrong with me. here's my controller: package billing; import com.opensymphony.xwork2.ActionSupport;

Re: Accessing a Bean from a bean using EL with STRUTS 2 - I really need help

2007-04-07 Thread mansour77
Laurie Harper wrote: [EMAIL PROTECTED] wrote: All I am trying to do is to retrieve an account from A DB and using taglib (data grid) to display the associated invoice with this account. Should this be a two-days task. Maybe something wrong with me. here's my controller: package billing;

Re: Accessing a Bean from a bean using EL with STRUTS 2 - I really need help

2007-04-07 Thread mansour77
Dave Newton wrote: --- [EMAIL PROTECTED] wrote: jsp:useBean id=accountBean type=billing.AccountBean scope=request/ I don't know exactly why I am using this, but from what I understand to make the variable available for the page. Being a newbie, I decided

Re: Accessing a Bean from a bean using EL with STRUTS 2 - I really need help

2007-04-07 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: jsp:useBean id=accountBean type=billing.AccountBean scope=request/ is sufficient, but it's still not clear to me why you're using jsp:useBean.../ at all. ui:dataGrid items=${accountBean.invoices} [...] If accountBean has an appropriate

Re: Accessing a Bean from a bean using EL with STRUTS 2 - I really need help

2007-04-07 Thread mansour77
Sorry: Forgot about the tag lib : I am using datagrid lib from jakarta-taglibs-sandbox. Dave Newton wrote: --- [EMAIL PROTECTED] wrote: jsp:useBean id=accountBean type=billing.AccountBean scope=request/ I don't know exactly why I am using this, but from

Re: Accessing a Bean from a bean using EL with STRUTS 2 - I really need help

2007-04-07 Thread Laurie Harper
[EMAIL PROTECTED] wrote: All I am trying to do is to retrieve an account from A DB and using taglib (data grid) to display the associated invoice with this account. Should this be a two-days task. Maybe something wrong with me. here's my controller: package billing; import

Re: Accessing a Bean from a bean using EL with STRUTS 2 - I really need help

2007-04-07 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: when I stepped into the code, I found obj is of type string So I assumed there's something wrong I am doing in passing the argument, or setting some variable ... or Here's where my problem IS. You still haven't said if you'r running on a JSP 2.0

Re: Accessing a Bean from a bean using EL with STRUTS 2 - I really need help

2007-04-07 Thread mansour77
Dave Newton wrote: --- [EMAIL PROTECTED] wrote: when I stepped into the code, I found obj is of type string So I assumed there's something wrong I am doing in passing the argument, or setting some variable ... or Here's where my problem IS. You still haven't said if

Re: Accessing a Bean from a bean using EL with STRUTS 2 - I really need help

2007-04-07 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: Dave Newton wrote: You could *try* just passing in accountBean.invoices (rather than ${accountBean.invoices}) and see if that works; I don't know if the taglib is expecting a complete EL expression. I tried this and it didn't work. Yeah, didn't think so.

Re: Accessing a Bean from a bean using EL with STRUTS 2 - I really need help

2007-04-07 Thread Piero Sartini
On Saturday 07 April 2007 22:15:18 [EMAIL PROTECTED] wrote: Now since it looks like I am running into compatibility issues, is there any alternative for this tag lib ? I need some thing very similar that provides paging and to be as easy an .net control components. Does struts provides a