Hi Champs,
I am new to web development and working on a web based application. I am trying to access js file from jsp but getting 404 error.
The project structure is
context path : /context/testHTML Code:Application |_ _ _ javasource |_ _ _ WebContent |_ _ _ js |_ _ _ home.js |_ _ _ META-INF |_ _ _ WEB-INF |_ _ _ jsp |_ _ _ home.jsp |_ _ _ lib |_ _ _ web.xml |_ _ _ struts-config.xml
I am trying to access home.js from home.jsp
using :<script type="text/javascript" src="${contextPath}/js/home.js"></script>
URL : http://localhost:8080/context/test/
Please let me know how do we access js file from jsp?
Thanks,
Chinnu