User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 373,916 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,559 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 9204 | Replies: 5
Reply
Join Date: Aug 2005
Posts: 10
Reputation: tllcll is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
tllcll tllcll is offline Offline
Newbie Poster

how to call javabean from jsp page upon onChange event

  #1  
Aug 29th, 2005
Hi,
I would like to find out how to call javabean from jsp page with passing values upon onChange event. Pls provide example if possible
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2005
Posts: 9
Reputation: shyamNambiar is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
shyamNambiar's Avatar
shyamNambiar shyamNambiar is offline Offline
Newbie Poster

Re: how to call javabean from jsp page upon onChange event

  #2  
Oct 24th, 2005
cal ur jsp using a javascript ,cal that script upon onChange u can write ur bean cals in that JSP
Reply With Quote  
Join Date: Nov 2005
Posts: 1
Reputation: xchen is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
xchen xchen is offline Offline
Newbie Poster

Re: how to call javabean from jsp page upon onChange event

  #3  
Nov 8th, 2005
Originally Posted by shyamNambiar
cal ur jsp using a javascript ,cal that script upon onChange u can write ur bean cals in that JSP

Can you give a simple example?
Reply With Quote  
Join Date: Oct 2005
Posts: 9
Reputation: shyamNambiar is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
shyamNambiar's Avatar
shyamNambiar shyamNambiar is offline Offline
Newbie Poster

Re: how to call javabean from jsp page upon onChange event

  #4  
Nov 10th, 2005
onChange="javascript: return calBeanFucntion('yourJsp.jsp');
Reply With Quote  
Join Date: Jan 2006
Posts: 1
Reputation: marcfont is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
marcfont marcfont is offline Offline
Newbie Poster

Re: how to call javabean from jsp page upon onChange event

  #5  
Jan 5th, 2006
Originally Posted by shyamNambiar
onChange="javascript: return calBeanFucntion('yourJsp.jsp');


He there!

Shyam I can't see what are you trying to do. Which code do you plan to place in the function "calBeanFunction()"?

In my case, what I need to do is execute a JavaBean each time I catch a Javascript event and I'm really lost to do so. Could you please give a bit of light, please?

Cheers!
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,588
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 187
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: how to call javabean from jsp page upon onChange event

  #6  
Jan 6th, 2006
You can't execute Java code from a Javascript function directly.
All you can do is have the Javascript generate an Http request to a servlet which can execute the Java code for you and optionally return something which your Javascript could then use to generate content for your page.

It is tricky, but it can be done. Can't tell you how we solved it as the code is not mine to give away.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JSP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 5:22 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC