how to call javabean from jsp page upon onChange event

Reply

Join Date: Aug 2005
Posts: 10
Reputation: tllcll is an unknown quantity at this point 
Solved Threads: 0
tllcll tllcll is offline Offline
Newbie Poster

how to call javabean from jsp page upon onChange event

 
0
  #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
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 9
Reputation: shyamNambiar is an unknown quantity at this point 
Solved Threads: 0
shyamNambiar's Avatar
shyamNambiar shyamNambiar is offline Offline
Newbie Poster

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

 
0
  #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 Quick reply to this message  
Join Date: Nov 2005
Posts: 1
Reputation: xchen is an unknown quantity at this point 
Solved Threads: 0
xchen xchen is offline Offline
Newbie Poster

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

 
0
  #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 Quick reply to this message  
Join Date: Oct 2005
Posts: 9
Reputation: shyamNambiar is an unknown quantity at this point 
Solved Threads: 0
shyamNambiar's Avatar
shyamNambiar shyamNambiar is offline Offline
Newbie Poster

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

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

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

 
0
  #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 Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

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

 
0
  #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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC