willi_gamboa
asked on
JSTL <c:set> tag with <fmt> tag
Hi. I don't know much about JSTL, but someone with some knowledge was trying to help me out. Basically I'm trying to set a variable in JSTL with value equal to something referenced by a <fmt> tag. Then I try to get the value of this variable in a scriptlet through the pageContext. The code below doesn't work, however. All I'm getting is an empty string in the scriptlet. Any help would be appreciated.
<c:set var="selectedValuePresente d" value="<fmt:message key='<%= ResourceKeys.DF_SELECT %>'/>" />
<%
String selectedValuePresented = String.valueOf (pageContext.getAttribute( "selectedV aluePresen ted"));
%>
<c:set var="selectedValuePresente
<%
String selectedValuePresented = String.valueOf (pageContext.getAttribute(
%>
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
;)
Glad I could help
David
Glad I could help
David
ASKER