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.
Why is the Java script file(.js) being treated as a servlet? some where I read that it should be moved from servlets directory to any other directory. How to specify the path for .js? Thank u for ur time Sanjivani
I guess you are getting that error because your browser thinks the /servlet directory is the directory you want and everything in that address is supposed to be a servlet. The solution would be to give a complete address for the js file rather than the relative address and it should be stored like any other resource for an HTML file. WBB
Copy "TestScript.js" in to root:\javawebserver2.0\servlets directory. I think now it should work fine without any errors. An alternate solution is, copy "TestScript.js" in to root:\javawebserver2.0\public_html and change the path in the src as follows: