Is it a must to use the struts2-jquery plugin to be able to run jQuery code in a struts2 application?
I am working on a struts2 web app
jQuery file: WebContent/js/jquery-1.4.3.js
JSP pages location: WebContent/pages/*.jsp
THDFindYourQuote.jsp is the default page of the application:
I have a simple script in THDFindYourQuote.jsp
[script type="text/javascript" src="../js/jquery-1.4.3.js"][/script]
[script type="text/javascript"]
$(document).ready(function(){
alert('I am in the JSP code now!!');
});
The above script is executed when i access the url:
localhost:8081/ CloseQuote/pages/THDFindYourQuote.jsp
the same script does not work when I access the URL:
localhost:8081/ CloseQuote/
I am having the same problem in other JSPs. The script works when i access the jsp using the full path URL. It does not work when I access the jsp with action urls ..please help