Calling arbitrary method with expression language

I'm new to JSP, but have a strong background in Java. I've created a bean that I've included on a JSP page that is meant to manage access to a database. On this bean I have a method

publicint createNewRecord();

which will create a new record and return its id. I then want to embed this id in a link within my webpage by using something like:

<jsp:useBean id="dbBean" scope="application" class="com.myDomain.DatabaseIfaceBean"/>

<html>

<body>

Link to <a href="relativePage.jsp?recordId=${dbBean.createNewRecord}">record page</a>

</body>

</html>

However, this doesn't work. Is there a way to call this method? If this method accepted arguments, is there some way I could pass arguments to it?

[966 byte] By [Mark_McKaya] at [2007-11-26 18:17:22]
# 1
Its a bit long winded, but EL functions would be the way to go. [url http://www.sitepoint.com/article/java-6-steps-mvc-web-apps/6]Here's [/url] a link (search for EL functions in the page)ram.
Madathil_Prasada at 2007-7-9 5:50:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...