| Author |
Get Javascript returned value into Java
|
lucas teh
Greenhorn
Joined: Jun 29, 2010
Posts: 6
|
|
As per case above, how can I assign aaa to the return value of func1 ("bbb") i.e. aaa = "bbb"?
|
 |
Naresh Shanmugam
Ranch Hand
Joined: Jul 16, 2010
Posts: 82
|
|
|
Lucas Javascript executes on Client side(Browser), Where as the Java code executes on the Server side.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56233
|
|
|
You can't. You have a fundamental misunderstanding of how JSP works. Please read this article to understand how JSP operates, and why this is impossible.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56233
|
|
|
Also, modern JSP should have no Java code embedded within them. You should update your JSP knowledge.
|
 |
 |
|
|
subject: Get Javascript returned value into Java
|
|
|