Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing resource key to javascript function

 
Neeraj Vij
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to pass the value of resource key defined in the property file to a javascript function. I am getting error while using the following code snippet. please provide some poniters



thanks
neeraj
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As you've discovered, you can't nest tags like that--that's simply not valid JSP. You'd need to set the value to a variable and use either JSP 2+ EL, or the Struts EL tags if you're not running in a JSP 2+ container.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic