posted 16 years ago
Hi,
I have a jsp file in which I have a few controls. I want the user to fill them , to click on a button that invokes a javascript function.
The javascript function should print on the screen the result of the jsp code:
function go()
{
<% out.println(my java code that returns string); %>
}
I can see the java result only from the page source - I right click on the page -> view -> source
and then I can see the result of the java code located instead of the : <% out.println(my java code that returns string); %>.
Even more - if I write in go() function only document.write("hello"); , the print "hello" will be to the souce of the page and no one
can see it. why ??? it should write hello on the screen.
I hope I managed to describe the question. sorry if not...
Thanks in advance.