aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Where should css, pictures , javascript go in MyEclipse IDE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Where should css, pictures , javascript go in MyEclipse IDE" Watch "Where should css, pictures , javascript go in MyEclipse IDE" New topic
Author

Where should css, pictures , javascript go in MyEclipse IDE

Tarun Oohri
Ranch Hand

Joined: Feb 20, 2013
Posts: 180
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

Joined: Apr 06, 2012
Posts: 426

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

Joined: Dec 16, 2010
Posts: 1070
    
  13

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.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where should css, pictures , javascript go in MyEclipse IDE