-1

FacadeGUIcontroller : class that imported in jsp.

this code doesn't accept variable as its parameter

function runmlp()
{

 FacadeGUIcontroller.printk(document.getElementById( 'txtneuron').value);
}

But this code is working correctly.

 FacadeGUIcontroller.printk("myname");
duffymo
  • 305,152
  • 44
  • 369
  • 561

1 Answers1

3

FacadeGUIcontroller.printk(document.getElementById( 'txtneuron').value);

You are trying to code javascript stuff in jsp and assumed to be executed at server which is wrong.

JavaScript gets executed at client's browser , where java code from jsp gets executed at server


See

Community
  • 1
  • 1
jmj
  • 237,923
  • 42
  • 401
  • 438