• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where should css, pictures , javascript go in MyEclipse IDE

 
Tarun Oohri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone
I am facing a problem. I have designed a html page using css and javascript but now when i am trying to deploy it in MyEclipse IDE..everything has just got messed up and no pictures are visible.
Please guide me where we should keep our pic's folder , java script folder and css folder ... I kept it right under WebRoot folder.
Please Help !!!
Thanks
 
Roger Sterling
Ranch Hand
Posts: 426
Eclipse IDE Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can put them anywhere you want.

Some ppl put them here : src/main/webapp/resources

http://www.mkyong.com/spring-mvc/spring-mvc-how-to-include-js-or-css-files-in-a-jsp-page/
 
J. Kevin Robbins
Bartender
Posts: 1744
19
Chrome Firefox Browser jQuery Linux MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Roger pointed out, it's up to you. Other common paths are /includes/scripts and /includes/styles or /common/scripts and /common/styles.

But I suspect that the reason your app is broken is because you are using relative paths. It's a common mistake. Please read this faq to understand the different ways of linking to resources.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic