HI ,
this could be trivial but i don't know anything abt JSP ,

Here is my java code
public class NameHandler {
private String name;
public NameHandler() {
name = null;
}
public String getName() {
return name;
}

public void toUpper (){
name = name.toUpperCase();
}
public void setName(String name) {
this.name = name;
}
}

now from what i understood i could use java beans to access the getter and setter
so the code in JSP is as follow
<jsp:useBean id="mybean" scope="session" class="org.mypackage.hello.NameHandler" />

<jsp:setProperty name="mybean" property="name" />
<h2>Hello, <jsp:getProperty name="mybean" property="name" />!</h2>

now i want to call "toUpper" function from my java class
how to do that , using beans or any other method