This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes how to include js and css file in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to include js and css file in eclipse" Watch "how to include js and css file in eclipse" New topic
Author

how to include js and css file in eclipse

archana tiwari
Ranch Hand

Joined: Mar 15, 2012
Posts: 44
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

Joined: Jan 10, 2002
Posts: 61064
    
  66

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).


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to include js and css file in eclipse