On Thu, 2 Aug 2001, John Baker wrote:
> <jsp:plugin type='applet' code='AppletWrapper.class' align='center'
> archive='jcchart450K.jar'
> width='600' height='500' jreversion='1.2'>
> <jsp:params>
> <jsp:param name="setCount" value="<= labels.length %>" />
> <%
> for (int i=0; i<labels.length; i++) {
> %>
> <jsp:param name="setName<%= i %>" value="<%= labels[i] %>" />
> <%
> }
> %>
> </jsp:params>
> </jsp:plugin>
>
> Why isn't this allowed? It seems such a useful feature! And if this isn't
> allowed, how can I do it?
>
The <jsp:plugin> tag and it's corresponding parameters are evaluated at
page compile time, not at runtime. That's why the above doesn't work.
> Tomcat 4 beta 6.
>
>
> John Baker
>
> --
> John Baker, BSc CS.
> Java developer, Linux lover.
> I don't wanna rock, DJ.
>
Craig