why not display message in fmt.tld (JSTL)!

Posted on 2006-05-23
Last Modified: 2013-11-24
I am writing a login module. I use JSTL to display message from ApplicationResources. Following here:
<fmt:message key="index.login"/>
Although I am declaring taglib in JSP page and web.xml. But when running it only displays: ???index.login???
Please, help me! Thanks very much.
Question by:khoa235
    LVL 4

    Accepted Solution

    Your taglib seems to be working.
    The ???index.login??? would indicate that it has found a resource bundle, but hasn't found the key "index.login" in it.
    If you haven't specified a bundle, it will use the default bundle

    Maybe try the setbundle tag:  <fmt:setBundle basename="ApplicationResources"/>

    You can set this default in your web.xml file as well



    Author Comment

    thanks evnafets.
    I am processing what you say but until display ???index.login???
    I am using MyEclipse J2EE Development.
    LVL 14

    Assisted Solution

    Make sure your properties file placed on the classpath.


    Boon Leng

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    countEvens challenge 2 47
    ShiftLeft challenge 21 50
    abstract class with all non abstract mentods 6 58
    countPairs challenge 7 39
    I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
    Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
    The viewer will learn how to implement Singleton Design Pattern in Java.
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now