How can I call a bean method in JSP without using scriplets such as <% myBean.method() %>
?
I have created my application in JSP. I know it is possible using JSF, but I don't want to create a new project.
Is it possible to use JSP or JSTL to solve this problem and call a bean method?
You can call a bean method using EL. Just pass a reference of the class that has the method to JSP and call it like this: ${objectName.methodName()}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With