• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to include js and css file in eclipse

 
archana tiwari
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using servlet for my program. I want to use css and java script , i have given the right path in source path but program is not running properly. I am using eclipse .Is there any other option to include js and css file in eclipse?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65125
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Who cares what it does in eclipse? eclipses is an editor, not the real world. Does it work when you actually deploy the war file?

Most likely your URLs are not properly formed. You should be using server-relative addresses that start with the context path. See the JspFaq for details (the one named ResourceUrlProblems).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic