作者: せR3n、何必装纯 时间: 2011-11-12 22:21
我不纠结了,我退步了,不在el表达式里面直接传值了
<%
String [] value = new String []{"apple" ,"fuck"};
request.setAttribute("value",value);
%>
${zl:format("this a [0] ,so you can [1] it ",value ) }
<!-- ${zl:format("this a [0] ,so you can [1] it ","pig") } -->
有趣的发现,下面哪行注释,服务器,也给翻译了,所以会有Cannot convert pig of type class java.lang.String to class [Ljava.lang.String;异常