• Post Reply Bookmark Topic Watch Topic
  • New Topic

OnClick Function not getting called on click of button on JSP page  RSS feed

 
Rachael Rose
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
My JSP page looks like


The problem is that after loading the dropdown, I am selecting values from them and clicking the button to submit the form. But it does not seem to work. I tried putting an alert inside the function call too alert("entered function"); but no good. Could anyone suggest what might be the issue?

Regards,
Rachael

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sigh.Still using scriptlets?

In any case, responding to clicks is a function of client-side JavaScript, so showing us all this server-side markup just makes things difficult. Rather, show us the generated HTML which is easily viewable using browser tools.

Be sure to tidy it up before posting (plenty of HTML tidy tools), and UseCodeTags when posting code.
 
Rachael Rose
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Bear,
Thanks for a quick reply. I do understand your point that using java scrip-lets inside JSP page is a bad idea but I have some work related integration to be done on MULE esb. In their documentation they have mentioned this as a way to call Java classes from JSP pages.


Hope this is what you have requested...

Regards,
Rachael
 
Paul Ngom
Ranch Hand
Posts: 355
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rachael,
You did not declare your function. It should read function MyFunction()
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!