Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Myeclipse, eclipse

  Asked By: Mali    Date: Feb 24    Category: Java    Views: 696
  

I am using MyEclipse and Eclipse as my editor for spring development,I cant put messages.properties file inside the /WEB-INF/classes
it seems like,it deletes class folder each time i create the war file.How can i do it?
also i didn't have access to classes folder through eclipse,t doesn't show classes directory)

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Bien Nguyen     Answered On: Feb 24

You shall consider a folder  in your directories for the classpath content so that its content will be copied to the WEB-INF/classes during your build process.

 
Answer #2    Answered By: Freddie Evans     Answered On: Feb 24

If your using MyEclipse for Spring development  then put  your .property file  under the Source
folder instead of putting it in a package
for ex:-
Java Src --
log4j.properties
message.properties

or else u may have to configure it manually in appbeans.xml in Spring to load the message files

 
Answer #3    Answered By: Jonah Brown     Answered On: Feb 24

Just put  it in the src folder  (with the same packaging) instead of the
classes folder,so every time  you rebuild you project, eclipse  copy it
to the classes  folder automatically.

 
Didn't find what you were looking for? Find more on Myeclipse, eclipse Or get search suggestion and latest updates.




Tagged: