LogonAction:125: non-static method findEditorData(java.lang.String) cannot be referenced from a static context"
EditorBean editor = EditorBean.findEditorData( username );
The 'static context' does not have to do with the LogonAction. The static context is the EditorBean class. I will bold the static reference...
EditorBean editor =
EditorBean.findEditorData( username );
The problem is, you are trying to call the findEditorData method from a class reference, instead of an object reference.
If you had done something like:
Then you would not have gotten the compiler error, because now you're calling the non-static method from an instance of the class.
But because you don't want to have to instantiate an instance of EditorBean, in order to use its finder method,
you should be making the findEditorData method static.
[ November 30, 2003: Message edited by: Mike Curwen ]