0

I am unable to find replacement for bean:define tag in JSTL.

<bean:define id="arraySize" value="<%=String.valueOf(abc.size())%>" scope="request"  />

and

<bean:define id="abc" name="abcform" property="abc" type="java.util.ArrayList"  />

can anyone suggest JSTL replacement for above Struts tags. Thanks in Advance.

Varun
  • 196
  • 1
  • 20
  • You're trying to get a value called `abc` from the `abcform`'s `abc` property and it's an array list? You'd have to access the action form directly and might be able to use ``, but I probably wouldn't bother--either continue to use the S1 tag, or expose it as a property in the action itself. – Dave Newton Jul 05 '18 at 12:01
  • As part of struts to spring migration i was working ... so i got stuck with above code – Varun Jul 06 '18 at 05:33
  • did u remember what you applied with JSTL so ? – MychaL Feb 27 '20 at 21:18
  • No sorry @MychaL – Varun Aug 09 '20 at 18:58

0 Answers0