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.
You can not directly pass an Object using jsp:include param tag into another jsp.
However, you can pass that attribute's NAME (as a string) using jsp:include param tag into another jsp, Then in the included jsp, you can get that attribute itself by its name from requestScope.
in your main JSP:
in attributeSubFeatureRemove.jsp:
object's name = ${param.objName}
object itself = ${requestScope[param.objName]}
Just for an easier access:
obj=${obj}