Hi
I have a requirement where I am migrating
struts 1 to struts2
Now in the
JSP that is already written in struts1, there are scriptlets being used which are accessing the variable defined in <logic:iterator as follows
>
I have minimized the code above to the least, so that it is easy to explain the requirement. Though the scriptlet has much bigger code inside it (in actual)
Now the requirement here is to migrate it to struts 2
In struts 2, I do it something as follows
Here I am not able to access the task variable inside scriptlet as I was able to access in struts1.
It is giving compilation error.
I cannot use the struts 2 tags, because such kind of scriptlets are many in the JSP, and I want to go with the least changes so that I dont need to change the complete JSP (whcih ofcourse is error-prone)