Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlets and Alert popups  RSS feed

 
Bob Backlund
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a quicky to as, is it possible to call an 'alert' style popup from a Servlet, like the Javascript ones? If so how?

Cheers
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaScript runs on the client, Servlets run on the server. So no, not directly. But there is nothing to stop your Servlet generating the JavaScript required to generate an alert.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!