You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Miao, Franco CAWS:EX" <Fr...@gems7.gov.bc.ca> on 2001/11/14 05:04:57 UTC

how to embed Javascript in Jsp?



Basically I would like to put javascript file .js inside <%            %>,
just don't know the syntax. thanks!


Franco 

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: how to embed Javascript in Jsp?

Posted by Scott Walter <tx...@yahoo.com>.
you could try:

<%
  out.println("<SCRIPT src=\"file.js\"></SCRIPT>");
%>

--- "Miao, Franco CAWS:EX"
<Fr...@gems7.gov.bc.ca> wrote:
> 
> 
> 
> Basically I would like to put javascript file .js
> inside <%            %>,
> just don't know the syntax. thanks!
> 
> 
> Franco 
> 
> --
> To unsubscribe:  
> <ma...@jakarta.apache.org>
> For additional commands:
> <ma...@jakarta.apache.org>
> Troubles with the list:
> <ma...@jakarta.apache.org>
> 


=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Scott

__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>