Link to home
Start Free TrialLog in
Avatar of aseshu70
aseshu70

asked on

Onclick in jsp

In my jsp , i want to use javascript function which in turn calls java class and displays the drop down list. I can call the javascript function in onclick event.
How can i use the javascript function which calls both the java class and drop down list.
Pls help with some sample programs.
Avatar of bloodredsun
bloodredsun
Flag of Australia image

Javascript cannot call the Java class, as javascript is client side and Jsp/Java is server side. You need to use the Javascript as you would with any normal HTML.
ASKER CERTIFIED SOLUTION
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>> Applets can communicate with javascript I believe.

They sure can :-)

But I have heard there are problems with Mac OSX (may be fixed now tho) :-)

Tim
Split gdrnec, TimYates I reckon...  If it were a 60 point Q, I would recommend a 3 way split...
Agreed, just gdrnec and Tim, mine post was just a passing comment really
agreed