• Post Reply Bookmark Topic Watch Topic
  • New Topic

using JSP inside javascript  RSS feed

 
Parthiban Malayandi
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I want to know is there any way to use JSP inside javascript or any other alternative solution .

example:

I want to remove or replace an servletcontext attribute depends on user choice which I will get it from javascript prompt dialog box.


Thanks in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, of course not. JSP is executed on the server in order to create the HTML page to send to the client. Please read this article to understand how JSP operates.

You'll need to make a request back to the server. Sounds like a good job for Ajax.
 
Parthiban Malayandi
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your response Bear Bibeault
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!