Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Oct 2011
    Posts
    12
    Thanks
    2
    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

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,603
    Thanks
    80
    Thanked 4,500 Times in 4,464 Posts
    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.
    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.


  •  

    LinkBacks (?)


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •