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

Need to pass a varible from action class to javascript  RSS feed

 
Binesh Kochi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I want to greyout entire jsppage after loading the page,This is based on the condition and that condition variable is coming from action servlet. I need to check this condition on body onload. How do I do that?

Any help will be highly appreciated.

Thanks in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a servlet: you can create anything you want as output. Create the JavaScript variable containing the value you want to check.
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And you would know how to write a Java Script functions that gets executed onbody load right?

You need to tell where you are stuck & showing some code might help too.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!