Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP work with Javascript (Pain!)

 
Peter Pu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as we all know, JSP is server page and Javascript is for client only.
but somehow I really need them to work together
the situation is I have a pop up window, and it will pass something back to the original window using javascript
and on the original window, I need to store that value in a bean, or a variable on JSP (java variable)
and body know how to do this?
maybe with cookie?..or?
thanks!!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only way to get Javascript to communicate back to the server is to post a request. Your popup can do this in a hidden frame, or to itself before closing.
 
Peter Pu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, thanks!
I will try it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic