How to use scriptlets in custom tags?
I face one problem
<%@ page isELIgnored="true" %>
<%@ taglib uri="WEB-INF/tld/txt.tld" prefix="c" %>
<% String ss = "12345" ;
int s = 5;
%>
<c:Hello name="dfdsfds"/>
<c:Loop iterations="5">
<%=ss%>
</c:Loop>
above one is executed correctly.
if i give like this
<%@ page isELIgnored="true" %>
<%@ taglib uri="WEB-INF/tld/txt.tld" prefix="c" %>
<% String ss = "12345" ;
int s = 5;
%>
<c:Hello name="dfdsfds"/>
<c:Loop iterations="<%=s%>">
<%=ss%>
</c:Loop>
it said "According to TLD or attribute directive in tag file, attribute iterations does not accept any expressions"
how can i use