This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Iam developeing jsp page in eclipse, my project is i wants to show some datas in tree structure, for that i used jquery now its fine but without internet it is not working, by useing some sites it takeing 2 js files and 2css files. now i got the css and js code but i don't know where i want to store the files. and the main thing is i need to mention the path of the css anf js file in my treestructure code. This is my first project so i don't know many things because iam new to developing filed, please guide me. below i have mention my code
Deploy them in subdirectories under "[your-project]/WebContent". I usually name the subdirectories "js" and "css".
Then use relative paths like this:
If your web application URL is something like "http://localhost:8080/mywebapp", then a relative path like "css/screen.css" will be treated by browser as "http://localhost:8080/mywebapp/css/screen.css".
On a side note - for future reference - never link to other sites directly like you've done to http://jquery.bassistance.de, unless you have their permission or unless they state that the URL is available for public use.
It's called "hotlinking" - or more pejoratively, "leaching".
It's bad web etiquette, because you're making the owner of that private site serve your users. It'll increase their bandwidth costs, and the load on their servers.