Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need to pass a varible from action class to javascript

 
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
Pie
Posts: 65339
97
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic