I have a class named AttachmentsBean
which has a method named showUploadDialog()
. In another class named UploadBean
, when I execute the following code :
if(count=0)
{
return AttachmentsBean.showUploadDialog();
}
I get the error:
"Non-static method cannot be referenced from a static context".
Please suggest.