Dijo David
Dijo David

Reputation: 6205

Using java methods in JSP

I want to call some methods in my jsp file. I have a class file with some methods and I want to use some of the methods used in that class file. I have gone through page import in JSP, but still I didn't get any idea about how to do that. I have installed some extra libraries and which is required to run those methods. Do I need to place the libraries in the server where I am using the jsp file. Can anyone suggest me how to do that..

Upvotes: 1

Views: 752

Answers (2)

Loga
Loga

Reputation: 696

Use @page Directive tag to include the java class file and create object in scriptlet(<% %>) tag and use the methods of that class as you want..

Upvotes: 1

Bozho
Bozho

Reputation: 597402

Upvotes: 4

Related Questions