Hello,
Please find below the tag file and the corresponding
jsp that invokes the tag.
Tag File:test.tag
<%@ attribute name="Country" required="true"%>
<%
java.util.Map map = new java.util.HashMap();
map.put("countryName", "India");
request.setAttribute("map", map);
%>
<c:set target="${map}" property="countryName" value="${Country}"/>
and the jsp snippet: TagFileTest.jsp
.......
<body>
<mytags:
test Country="United States">
This is a test
</mytags:test>
</body>
....
whenever I try to invoke the above jsp page I always receive the following exception:
org.apache.jasper.JasperException: /TagFileTest.jsp(12,1) Unable to find setter method for attribute: Country.
Please let me know how I may set the value for Country to get around this exception.