Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Reading data from fmt tags
10-09-2011, 06:23 PM #1
- Join Date
- Oct 2011
- Thanked 0 Times in 0 Posts
Reading data from fmt tags
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
10-09-2011, 10:42 PM #2
About the only thing the two languages have in common are the first four letters of their names.An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.