Click to See Complete Forum and Search --> : how to reach bean method from jsp ?


atoprak
10-24-2005, 04:57 AM
Hii,


I am looking for some help to reach some methods of the database accessor class.

my class name is manager, and I want to reach that class from jsp in order to get vector, which is the return value of a specific method.


How can I do that.?

I will be very apprecited with sample code...

Thanks...

Oak
10-25-2005, 04:34 PM
For starters, a class name should always start with a capital, so I will assume Manager is what you are referring to.

<%@ page import="your.package.Manager" %>
<%@ page import="java.util.Vector" %>

<%

Manager manager = new Manager();
// Or however your normally get your manager object

Vector vector = manager.getVector();
// Ya woo ta da.

%>

Where getVector() is the getter method for your property that returns a Vector.