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

c++ - Linked List error when inserting for the last time -

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

tsql - Pivot with Temp Table (definition for column must include data type) -- SQL Server 2008 -