jsp - How to parametrize list name in jstl? -


i need 3 similar blocks of code, instead of copy&paste same code, separated different file , it's parametrized during <s:include>. have 1 problem - in block, operate on list , part of it's name 1 of parameters. while it's not problem in iterators (list="request.${param.name}list"), can't obtain list size. need this:

${param.name} - parametrized part
${fn:length(request.___list)} - size of list

instead of ___ there should go parametrized name, don't know how put in way works.

i ended passing list size argument, in c-style array operation functions.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -