| | |
how to call javabean from jsp page upon onChange event
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jan 2006
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
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!
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.
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.
![]() |
Similar Threads
- Passing variable value from javascript to jsp page at run time (JSP)
- How to connect Oracle database from JSP page (Java)
- Very Very Urgent...Need Code for Calculating Execution Time For Jsp Page (JSP)
- How to run iReport jrxml from a jsp page (JSP)
- jsp,eclipse and weblogic server (JSP)
- how to call javabean from jsp (JSP)
- how to connect oracle 8i database with jsp page (JSP)
- Dynamic links in JSP page-need help (JSP)
- I think I'm going to cry... (JSP)
Other Threads in the JSP Forum
- Previous Thread: want to know more about jsp
- Next Thread: need help
| Thread Tools | Search this Thread |
apache backbutton combobox connection database development directorystructure dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 network parameters passing ping printinserverinsteadofclient redirect request.getparameter response servlet servletdopost()readxml sessions software ssl state_saving_method stocks sun tomcat tutorial update video web






