-2
<bean:define id="user" name="form" property="user2" type="document.result"  />

This is the example of my code. I was trying to convert my struts code into spring or jstl tag.

I tried converting this

<c:set var="user" value="${form.user2}" type="document.result" />

But the result shows no type attribute specific by set in JSTL.

Can anyone help me out,how to change it?

Roman C
  • 49,761
  • 33
  • 66
  • 176

1 Answers1

0

Just remove type attribute

<c:set var="user" value="${form.user2}"/>

If you use spring-tld in the view you can also use SpEL expression.

<spring:eval var="user" expression="form.user2"/>
Roman C
  • 49,761
  • 33
  • 66
  • 176