...

View Full Version : Reading data from fmt tags



charanrajd
10-09-2011, 06:23 PM
hi Guys ,

I have some instructions in property files , now I wat to retrive that fmt tag values in scriptlets So that I can modify the content in property file
So i have written the code in jsp as

<c:set var="mailBodyData" value='<fmt:message key="confirmemail.body.message"/>' scope="request"/>
<%
out.println("hero "+request.getAttribute("mailBodyData")); %>

but its displays empty ,

Also I have tried as

<% String str ="<fmt:message key="confirmemail.body.message"/>' %>

but its throughs the Compilation error , Pls help , So that I can retrive the data from fmt to Scriptlets

Old Pedant
10-09-2011, 10:42 PM
This is the javaSCRIPT forum. Your question is about JAVA.

About the only thing the two languages have in common are the first four letters of their names.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum