Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:03

JSTL tag inside of aI function


Poster: realfutbol23
Dated: Wednesday November 24 2004 - 17:06:31 GMT

Hi, I have something along the lines of

aI("text=Edit Preferences; url=blahController.do?id="+<c:out value='${ACEGI_SECURITY_AUTHENTICATION.principal.applicationUser.applicationUserId}'/>+";");


for some reason, I cannot get the value of the tag to be displayed...does javascript not accept jstl tags in this method, because I've tried formatting the syntax, and just cannot seem to get it to work

Thanks


Poster: John
Dated: Wednesday November 24 2004 - 18:30:28 GMT

It's the extra " you have in there. The aI accepts only 2 - beginning and end. You can try either escaping those in the 'middle ( \ ), or use a single backquote ( ` ).


Poster: schnocky
Dated: Wednesday December 1 2004 - 21:16:32 GMT

Did you try

<c:out value='aI("text=Edit Preferences; url=blahController.do?id=${ACEGI_SECURITY_AUTHENTICATION.principal.applicationUser.applicationUserId};")'/>

This should be equivalent to what you want and the syntax should be compatible with the menu syntax.

steve