Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

re:using javascript variable in jstl tag

843840Nov 5 2007 — edited Nov 5 2007
Hi,

Can we access javascript variable in a jstl tag..

For example

function clickGroupByPO()
{
var brand="hello";

<c:set var="Var" value="${brand}" />
alert("${Var}");
}

I am geeting balnk in the alert.. I want to assign brand to value attribute in <c:set>

Thanks and Reagrds,
radha
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 3 2007
Added on Nov 5 2007
1 comment
646 views