File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes how to call js file from jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to call js file from jsp" Watch "how to call js file from jsp" New topic

how to call js file from jsp

kotha vijaybabu
Ranch Hand

Joined: Jan 28, 2006
Posts: 77
hai folks
i want to know how to call js file from
a jsp
please reply

thank you in advance

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

What do you mean ? You won't call some javascript(clientside code) from JSP(server side)

[My Blog]
All roads lead to JavaRanch
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
is this what you are after?

<script type="text/javascript" language="javascript1.2" src="myjavascriptfile.js"></script>

MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
I agree. Here's the link:
subject: how to call js file from jsp
It's not a secret anymore!