calling javascript function from jsp
843836Jul 7 2005 — edited Jul 7 2005I am trying to call a javascript function from within a while loop written in java+jsp. This is my code and the comment displays where i need th function to be called:
<%
Search.connect();
ResultSet rs = null;
rs = Search.Department();
while(rs.next()) {
%>
<b><%= rs.getString("deptname") %></b>
// THIS IS WHERE I NEED THE JAVASCRIPT FUNCTION CALLED
<% } %>
rs.getString("deptname") would return a string and i need to pass that string as a parameter to the javascript function. Plz help me out
Thanks in advance