struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject RE: [S2] sending multiple 'bank account' objects to view page
Date Sat, 05 May 2007 11:25:39 GMT
--- MarcusFenix <cezary.wozniak@gmail.com> wrote:
> This error is because I try to staticly instatiate 
> the Account class?

Where do you think you staticly instantiated the
Account class?

> public class Settings extends BankSupport{
>   Account ac1, ac2, ac3;
> 
>           public Settings()  {
>         
>         ac1.setCurrentAmount(500);
>         ac2.setCurrentAmount(300);
>         ac3.setCurrentAmount(0);
>       
>        }

You didn't instantiate them at *all*.

d.


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

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


Mime
View raw message