The documentation says you don't need bean-el:write because of c:out,
but I think I have a valid use case for bean-el:write (Assuming
you want to avoid using <% %>).

Example:
I have a list of objects named "results"
each result contains a hashmap called 'translations'.

(1) render the results in a particular language (e.g. german)

<c:forEach items="results" var="result">
    <c:out value="${result.translations.de}"/>
</c:forEach>

(2) render the results in ${language} (= "language" in the pageContext)?

<c:out value="${result.translations(${language})}"/> is of course invalid, but
I think we could do it with bean-el:write

(...)
<bean-el:write name="result" property="translations(${language})"/>

What do you think?  Is there a way to do this without (the non-existant) 
bean-el:write that I overlooked?

Karel

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to