Let's say I have the following JSTL loop:
<c:forEach items="${foos}" var="foo" varStatus="status">
<c:out value="${processedFoo}"/>
</c:forEach>
And let's say I have an external library com.foo.processor
which contains a ProcessorFactory
class with a process
method.
How do I import this library and call the following code from inside the JSTL loop?
Foo processedFoo = com.foo.processor.ProcessorFactory.process(foo)