title: How to pass Object using jsp:include param tag into another jsp
body: <p>I am trying to send DTO Object from one jsp to another jsp using jsp:include tag. But it is always treating it as String. I can't able to use DTO in my included jsp file.</p>
  
  <p>Here is a code ..</p>
  
  <pre><code>&lt;c:forEach items="${attributeDTOList}" var="attribute" varStatus="status"&gt;  
           &lt;jsp:include page="attributeSubFeatureRemove.jsp" &gt;
               &lt;jsp:param name="attribute" value="${attribute}" /&gt;
           &lt;/jsp:include&gt;
  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>attributeSubFeatureRemove.jsp file ..</p>
  
  <pre><code>&lt;c:set value="${param.attribute}" var="attribute" /&gt;
  &lt;c:forEach items="${attribute.subFeatures}" var="subAttribute"&gt;
      &lt;c:forEach items="${subAttribute.attributeValues}" var="subValue"&gt;
          &lt;c:if test="${ subValue.preSelectionRequired}"&gt;
              &lt;c:set var="replaceParams" value=":${subAttribute.name}:${subValue.name}" /&gt;
              &lt;c:set var="removeURL" value="${fn:replace(removeURL, replaceParams, '')}" /&gt;
          &lt;/c:if&gt;
      &lt;/c:forEach&gt; 
      &lt;jsp:include page="attributeSubFeatureRemove.jsp"&gt;
          &lt;jsp:param name="subAttribute" value="${subAttribute}" /&gt;
      &lt;/jsp:include&gt; 
  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>Here I am trying to get attribute value from param, it is always sending String Type Value. Is there any way to send Object (DTO) in attributeSubFeatureRemove jsp file ? Please help.</p>