Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

calling javascript function from jsp

843836Jul 7 2005 — edited Jul 7 2005
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 4 2005
Added on Jul 7 2005
6 comments
350 views