Re: static reference to a method

2001-04-09 Thread Felix A. Milovanov
> > Hi there > I was wondering if anybody could help me out with > something? > > I have a JSP that is trying to access a method in a > java class that I have defined. However, when I try > and run the pgae, it gives the 500 error message and > says > > "Can't make static reference to method >

RE: static reference to a method

2001-04-09 Thread CPC Livelink Admin
The problem is that you have not declared the method as static. So you need to either do this : (new dynamicContent.dynamicContent()).getSelected("A", "B"); or declare the function as static String getSelected(string a, String b) and call dynamicContent.dynamicContent.getSelected("A", "B");