• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Sheriff
Posts: 67748
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 355
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rachael,
You did not declare your function. It should read function MyFunction()
 
reply
    Bookmark Topic Watch Topic
  • New Topic