0

I have a method

public void X(HttpServletResponse response)

in my bean. I want to call that function in JSP using JSTL. How can I do that? I just have to call the function.It does not return any value.

Bittu
  • 387
  • 2
  • 6
  • 13

1 Answers1

1

You can achieve this using custom tags. You can put all utility methods in a class as static and then expose them using tld file. Then include that tld in your JSP and then you can call the method using EL as -

${util:myMethod(anyParameter)}

See this for custom tags.

Saurabh
  • 2,384
  • 6
  • 37
  • 52