I have Struts 2 application.
I have a jsp file which looks like below
<s:form method="post" action="%{#attr.actionType}">
<c:forEach items="${nvpList2}" var="item">
<s:textfield label="%{#attr.item.displayName}"
value="%{#attr.item.value}"
name="%{#attr.item.getName()}"
id="%{#attr.item.getName()}"/>
</c:forEach>
<s:submit type="button" cssClass="btn btn-primary"
key="button.save" theme="simple" >
<i class="icon-ok icon-white"></i>
</s:submit>
</s:form>
As it can be seen that all the elements starting from action name to field names are created dynamically
Problem occurs when I do a validation check on fields. On validation check, the errors are shown but none of the textfields appear in the page.
How do I solve this problem.