Gin:

the script source statement seems correct assuming the .js is in the same folder..
Can we take a look at the rest of the code so we can see the entire constructed HTML page?
Best,

Martin Gainty

______________________________________________

Disclaimer and confidentiality note

Everything in this e-mail and any attachments relating to the official business of Laconia Data Systems (LDS) is proprietary to the company. It is confidential, legally privileged and protected by law. LDS does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of LDS.

The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way.

LDS can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference.

             _____________GMT-5___________________

 

>From: "Chen, Gin" <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: JSP Code in a JS file
>Date: Thu, 5 Sep 2002 14:27:05 -0400
>MIME-Version: 1.0
>Received: from swjscmail2.java.sun.com ([192.18.99.108]) by mc1-f35.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.4905); Thu, 5 Sep 2002 12:25:19 -0700
>Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by swjscmail2.java.sun.com (Postfix) with ESMTPid 2060423A0E; Thu, 5 Sep 2002 12:24:45 -0600 (MDT)
>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d) with spool id 2673298 for [EMAIL PROTECTED]; Thu, 5 Sep 2002 12:22:52 -0600
>Received: from reliant.nielsenmedia.com (reliant.nielsenmedia.com [63.114.249.15]) by swjscmail1.java.sun.com (Postfix) with ESMTP id EB2DF4817 for <[EMAIL PROTECTED]>; Thu, 5 Sep 2002 12:22:51 -0600 (MDT)
>Received: from nmrusdunsxg1.nielsenmedia.com (nmrusdunsxg1.nielsenmedia.com [10.9.11.119]) by reliant.nielsenmedia.com (8.11.5/8.11.5) with ESMTP id g85IR7M15160 for <[EMAIL PROTECTED]>; Thu, 5 Sep 2002 14:27:07 -0400 (EDT)
>Received: from nmrusdunsxg2.nielsenmedia.com (unverified) by nmrusdunsxg1.nielsenmedia.com (Content Technologies SMTPRS 4.2.5) with ESMTP id <[EMAIL PROTECTED]>for <[EMAIL PROTECTED]>; Thu, 5 Sep 2002 14:26:29 -0400
>Received: by nmrusdunsxg2.nielsenmedia.com with Internet Mail Service (5.5.2653.19) id ; Thu, 5 Sep 2002 14:27:06 -0400
>Delivered-To: [EMAIL PROTECTED]
>X-Mailer: Internet Mail Service (5.5.2653.19)
>Message-ID: <[EMAIL PROTECTED]>
>Sender: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>Return-Path: [EMAIL PROTECTED]
>X-OriginalArrivalTime: 05 Sep 2002 19:25:20.0338 (UTC) FILETIME=[F931A320:01C25511]
>
>Hi all,
> I've checked the archives because I thought this was already
>answered but I cant find the anything regarding it.
> I had JSP Code inside of a
>
>
> That worked fine.
>
> But I tried to move it into its own .js file and now it doesnt work.
> I tried to do:
> //hello.js
> function sayHi()
> {
> alert( '<%= "Hi" %>');
> }
>
> //hello.jsp
> ...
>
>
> and got a syntex error exception
>
> I then tried to do:
> //hello.js
> function sayHi()
> {
> alert( 'Hi' );
> }
>
> and it works fine.
> Does .js files not execute jsp code?
>
>-Tim
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com


Chat with friends online, try MSN Messenger: Click Here
=========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com

Reply via email to