2 Answers
2

Your best bet is to have that attribute's value in a hidden input field somewhere on the page, so you can then read it in with jQuery.
Unforunately, to the best of my knowledge jQuery or javascript does not have access to request, session or application scope variables.

I did so and it gave me EL Exception however I redeployed my project and the previous code worked just fine.
–
Muhammad RamahyAug 2 '11 at 8:35

you would need to edit the hidden input markup, as i stated in the answer this was only pseudocode as i do not know the language you are using, only jQuery. the method of placing the value of your var on the page as a hidden input and then reading it with javascript should work fine, you just needed to code it in spring.
–
jammypeachAug 2 '11 at 9:10

oh actually I didn't realise it was java. i used to do this with JSPs, all you need to do is replace the name and value attributes of that input with something that will echo them onto the page
–
jammypeachAug 2 '11 at 9:12