• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Where should css, pictures , javascript go in MyEclipse IDE

 
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 426
Eclipse IDE Fedora Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic