I found some way to solve the similar question,but none of them make sense to me
Project directory:
And my properties file content is
name=hello
this is my test code:
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<fmt:bundle basename="messages1"></fmt:bundle>
<h1><fmt:message key="name"></fmt:message></h1>
this is my result ???name???
Some people said
Some solutions about how to solve the similar question is put the properties file under the projectname/Java Resources/src/
but as you can see my project directory I put the proerties file in the 'right' place, but it makes no sense. Why? Thanks in advance.