Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

How to call two function in my button action?

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

My requirement is i need to call two function on clicking of button event, requirement is below

#1. i have create webstart (java standalone) application which is included as a <a href=" . . . . . . ">. when the user clicked the link it get downloaded and run in client end and insert value in db. This is working fine. what we are doing we are passing user id as a parameter to webstart application. Webstart will check user id in db and if exist then will update the data into db.

while launching the application there is no control between webstart & my web application. So the user clicking other action on web page and saying their no result. We need to display overlay something.

#2. ones the webstart got launched, i need to use another call to check db, if the particular column updated in db, and fetch the data and display in the page instead of overlay.


I thing i am not making any confusion here.......

scenario

user page -----> button --->while clicking the button --> user information stored in db and pass the user id to webstart for further action.
here the user information stored in db and moving to next page. while moving to next page, web start action should be happened automatically. Problem is i unable to call webstart action.

How to implement the two action simultaneously..

please help me.

Thanks
saran
 
Bartender
Posts: 3648
16
Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't you have a method that calls the 2 actions? That way it can call both like you expect.

Is this done all inside java code? It looks nothing to do with HTML/CSS/JS.
 
Ranch Hand
Posts: 52
Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
saravanan actually you cann't it just using js, because javascript is on client side and jsp is server side. So you can fullfil it with AJAX .
 
Marshal
Posts: 70266
282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not a “beginning” topic: moving.
 
Montana has cold dark nights. Perfect for the heat from incandescent light. Tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic