I'm sure that I'm just missing something very small here. This is more of a method visibility issue than a
servlet issue so that is why I'm posting here. I have a servlet class, and I have another class for with DB connecting and RS returning. I'll post the snippets and then describe the error...
My servlet code...
This is just a snippet, I have some 'if' logic below the request.setAttribute, but that doesn't do anything except build a
string and blah blah.
Here is the code for the connection class...
That is the whole class with both methods. My error is in the servlet class. In the line that says 'Connection opnConn = opnAS400Conn(url, libraryName, userName, password);' I am getting an error that says...
'The method opnAS400Conn(String, String, String, String) is undefined for the type FormManager'
FormManager is the name of my servlet, opnAS400Conn is the method in my class ConnDB. They are both part of the same package and both classes know that.
Why can't my servlet see that method in the other class?