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
Post a Comment