Problem to include java script file in servlet
843842Oct 14 2009 — edited Oct 14 2009I couldnt use any functions included in java servlet file using servlet. I made a test in jsp and it work fine but in servlet not.
Here my code
out.println("<jsp:include page=\"C:/path/file.js\" flush=\"true\" />");
or
out.println("<script language=\"javascript\" src=\"c:/path/file.js\">");
Although was no error but using both didnt let me use any function inside the java script file. As I said using the same command in JSP works fine.
How I can include the file.js correctly ?