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.
but when I write same code in html file withing <scritpt> tag its working perfectly. so is there any configuration I have to do on apache server for working with js files. (I am using apache server.. not apache tomcat)