facebook

messages_en.properties removed by Eclipse automatically

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #239282 Reply

    chingjyh
    Member

    Hi,

    I am using JSTL format tag library in my coding project. I have created a file “messages_en.properties” in WEB-INF/classes folder for this purpose. For some reason, the file keeps getting removed by Eclipse automatically whenever I make a change to any file in the project (Eclipse deploys the changed file to Tomcat 5.59 at this time.).

    Below is the setup I have for the property file in the web.xml

    <context-param>
    <param-name>
    javax.servlet.jsp.jstl.fmt.locale
    </param-name>
    <param-value>
    en-US
    </param-value>
    </context-param>

    <context-param>
    <param-name>
    javax.servlet.jsp.jstl.fmt.localizationContext
    </param-name>
    <param-value>
    messages
    </param-value>
    </context-param>

    Any help is appreciated.

    #239286

    Scott Anderson
    Participant

    I am using JSTL format tag library in my coding project. I have created a file “messages_en.properties” in WEB-INF/classes folder for this purpose.

    The problem is that the Eclipse Java builder will delete everything in the classes folder whenever it does a full build. However, non-Java files in the source tree are simply copied to the classes folder. So, to get your properties file to function properly, simply place it in the correct location in the source folder and let the builder move it for you as needed. That also makes it much easier to check it into CVS, etc.

    #239391

    chingjyh
    Member

    This is a web project based on MyEclipse. I can’t find any setting you described for Web project. I see a src folder (default value for source folder.), but it looks like an ordinary folder. Should I create WEB-INF/classess folder in the src and place the messages_en.properties file there?

    I am new to the Eclipse world. If you can provide me detailed instructions, I will appreciate it.

    Thanks,

    #239415

    chingjyh
    Member

    Ok, I got it to work. Just put the file in the src folder.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: messages_en.properties removed by Eclipse automatically

You must be logged in to post in the forum log in