jsp - Calling user defined functions in bean using JSTL -


this question has answer here:

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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -