•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 361,899 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 2,426 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: 8973 | Replies: 5
![]() |
•
•
Join Date: Jan 2006
Posts: 1
Reputation:
Rep Power: 0
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!
•
•
Join Date: Nov 2004
Location: Netherlands
Posts: 5,576
Reputation:
Rep Power: 18
Solved Threads: 184
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.
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.
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
- 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)
- Passing variable value from javascript to jsp page at run time (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



Linear Mode