jsp - Calling user defined functions in bean using JSTL -
this question has answer here:
- how call static method in jsp/el? 7 answers
i have method
public void x(httpservletresponse response)
in bean. want call function in jsp using jstl. how can that? have call function.it not return value.
you can achieve using custom tags. can put utility methods in class static , expose them using tld file. include tld in jsp , can call method using el -
${util:mymethod(anyparameter)}
see this custom tags.
Comments
Post a Comment