Note that there are some explanatory texts on larger screens.

plurals
  1. POObject passed via jsp:param throws javax.el.PropertyNotFoundException: Property 'foo' not found on type java.lang.String
    primarykey
    data
    text
    <p>I know this might be silly question and i tried googling but didnt got perfect answer.</p> <p>I am using following code</p> <pre><code>&lt;c:forEach var="aggregatedBatchProgressMetrics" items="${batchProgressMetricsList}"&gt; &lt;jsp:include page="html/tableContentsDisplayer.jsp"&gt; &lt;jsp:param name="batchProgressMetrics" value="${aggregatedBatchProgressMetrics}" /&gt; &lt;/jsp:include&gt; &lt;/c:forEach&gt; </code></pre> <p>and inside html/tableContentsDisplayer.jsp, i have following </p> <pre><code>&lt;c:set var="aggregatedBatchProgressMetrics"&gt;${param.batchProgressMetrics}&lt;/c:set&gt; &lt;tr&gt; &lt;td class="tdcenter"&gt;${aggregatedBatchProgressMetrics["clientId"]}&lt;/td&gt; &lt;td class="tdcenter"&gt;${aggregatedBatchProgressMetrics["instrumentStats"]["totalImntsCompleted"]}&lt;/td&gt; &lt;td class="tdcenter"&gt;${aggregatedBatchProgressMetrics["instrumentStats"]["totalImntsRemaining"]}&lt;/td&gt; &lt;/tr&gt; </code></pre> <p>aggregatedBatchProgressMetrics is what i get from c:forEach is an object of type com.xyz.AggregatedBatchProgressMetrics and not a String, from the exception it treats that as an String object. I have getClientId method inside the bean. Also if i place the content of included jsp file as is (without directives and c:set tag) it works absolutely fine. Is there a way i can pass an object using jsp:param tag and on the recieving end i get it as an object? </p> <p>Is it possible using jstl or i will have to use scriptlets/expression for the same?</p> <p>Thanks, Almas</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload