can any one give information on how to call java method in java script and return type from that method should be setted as title for the html.
code snippets do that.
P.S. If you don't understand why you can't just call a Java method from the browser, please read this article to understand how JSP operates and why you can't do that.