Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaScript in JSP  RSS feed

 
naro pad
Ranch Hand
Posts: 58
Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a jsp page which I had a form to be fill out.Now I have created a javascript file where i have some functions. How can I import this javascript into my jsp in order to use it.
I have write this: <%@ include file="Scripts/option.js" %> but it doesn't work

Help...
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No no no, it's not like that, do like this:



Best of luck ...
 
naro pad
Ranch Hand
Posts: 58
Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok THANKS... it works
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
:thumb:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!