[Asking smart questions] [About Bear] [Books by Bear]
hsyn rtkn wrote:hi, how i can call javascript from jsp for ex: <script> func1(word1) { for(i=0;i<=word1.length;i++) word1 = word1.replace("A","a").replace("B","b").replace("C","c") } </script> <% String word = "ABC"; %> <script> func1(<%=word%>) </script> <% system.out.println(word); output : abc
SCJP 6 [SCJP - Old is Gold]
zhiquan mai wrote:Affter the JSP servlet initialize