> Is it possible to use method from ordinary .class
> file in jsp file?
>
Yes, but in general it's a bad idea to embed Java code in your JSP.
> If it is, please explain.
Get a JSP book, or google for a JSP tutorial. Your question is rather vague, and there's no point in somebody here repeating the whole thing.
> Well maybe it is vague but I need it now and I do not
> have a book. I do not have time neither to search the
> web.
>
Then you're being somewhat unrealistic. You're asking people to volunteer their time to read your mind and distill for you what you'd learn yourself if you took the time to learn it properly or at least ask a better question.
I'd wish you good luck, but I wouldn't mean it, so I won't.
Bye.
> I am doing something like:
>
> <% student.displayStudents(); %>
>
> but it can't recognize variable.
Again, not a whole lot of information...
The only variable there is student, so clearly student is not defined in that context. That's all I can tell you based on what you've provided.
C:\tomcat\work\Catalina\localhost\_\org\apache\jsp\jsp\display_jsp.java:95: cannot find symbol
symbol : class BudgetDVDDBBusinessLogic
location: class org.apache.jsp.jsp.display_jsp
Student student = new Student();
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> I placed files into right places.
So, you did everything correctly but it's still not working?
Then I guess tomcat is borked. Or maybe your OS. Or your CPU. I suggest you write strongly worded letters of protest to the Apache folks, Bill Gates, and whoever is in charge of Intel.
> No it's to early to say good bye my friend.
Not for me it's not.*
> I still wait the answer from experts.
Oh, well, you got answers from me instead.
> The question is can I use it with .class
Already answered: Yes.
> and how can
> i do it?
Already answered: Read the appropriate books, docs, and examples.
*Goodbye.
> That's not kind of answer I am looking for. I'll wait
> for the expert anyway.
If you were really going to do that you would have posted in the JSP forum. But it's not surprising that you didn't do that.
Did you import your Student class into this lousy piece of **** you are trying to write?