• Post Reply Bookmark Topic Watch Topic
  • New Topic

request argument and body initialize  RSS feed

 
Tony Ennis
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


The above doesn't work. It doesn't like the jsp <%= %> thingies. How can I pass a value from the request to a javascript function?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66153
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It has nothing to do with JavaScript, and everything to do with the fact that it's within the value of a custom tag attribute.

The solutions, in order of preference:

  • Scriptlets are 8 years out of date, why are they still being used? You should be using the EL, not scriptlet expressions.
  • If scriptlets are to be used, they must constitute the entire value of a custom tag attribute. They can't just be embedded within one.

  •  
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!