'Passing values from Java bean to JSP
I am currently working on some legacy code and want to know if is possible to bind values that are not just string but arrays.
When I look at the code I see there's a binding between jsp and java bean i.e JSP
<input type="hidden" name="userId" value="${dataBean.userId}"/>
BACK END
private String userId;
I'm trying add another value, which is a list but it's not working when I do the following
<input type="hidden" name="availableUsers" value="${dataBean.availableUsers}"/>
private String[] availableUsers;
I suspect this is due to the fact that the field it's an array,how can I pass it to the front end?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
