JSTL tag inside of aI function

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
realfutbol23
Beginner
Beginner
Posts: 1
Joined: Wed Nov 24, 2004 6:00 pm

JSTL tag inside of aI function

Post by realfutbol23 »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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 ( ` ).
John
schnocky
Beginner
Beginner
Posts: 5
Joined: Mon Aug 30, 2004 7:39 pm

Post by schnocky »

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
Post Reply