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?

