我需要从jsp调用javascript函数。在这里,我需要将3个参数从jsp传递到javascript函数。
<script language="javascript">
function generateCertificate(src, dest, entries) {
return {
result: com.raj.Util.processPdf(src, dest, entries)
};
}
</script>
<%
InputStream src=t his.getClass().getClassLoader().getResourceAsStream( "/tem.pdf");
File file=n ew File( "/tem.pdf");
Map<String,String> entry = new HashMap<String,String>();
entry.put("!name", "Arockia Raj");
entry.put("!dob", "13/06/2005");
%>
<table width="655" border="1" align="center">
<tr>
<td width="329">
<div align="center">
<a class='button orange' id='proceed' onclick='generateCertificate(' <%=src%>', '<%=file%>', '<%=entry%>')' href='javascript:;'>Get certificate</a>
</div>
</td>
</tr>
</table>
但是它没有响应。如何做到这一点?