All these suggestions are hokey! There is no reason he should be having
this problem that should require him to make any alterations to his
Javascript. If he doesn't want to do an include of Javascript source, then
he should have to either, because that will not work with some browser out
there anyway. The problem has to be somewhere else.
Dan
> ----------
> From: Paul Medcraft[SMTP:[EMAIL PROTECTED]]
> Reply To: Paul Medcraft
> Sent: Tuesday, October 05, 1999 5:11 AM
> To: [EMAIL PROTECTED]
> Subject: Re: JavaScript in JSP
>
> Try changing the <script> and </script> tags to <scr<%= i %>pt> and
> </scr<%=
> i %>pt> respectively.
>
> This should trick the compiler into ignoring the javascript. If you still
> have problems, consider using a .js include file (i.e. <scr<%= i %>pt
> language ="JavaScript" src="/javascript/mycode.js"> </scr<%= i %>pt>.
>
> Paul
>
> > -----Original Message-----
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Borkey, Lin
> > Sent: 04 October 1999 22:53
> > To: [EMAIL PROTECTED]
> > Subject: JavaScript in JSP
> >
> >
> > Hello,
> >
> > I've got a problem in one of my JSP pages which contains a section of
> > client-side JavaScript code. The JavaScript is embedded in page via the
> > standard <SCRIPT LANGUAGE="JavaScript"> tag. For some reason the JSP
> > compiler is picking up the JavaScript as embedded Java and trying
> > to compile
> > it instead of just passing it along to the browser. I'm not using a
> > RUNAT=SERVER directive nor are there any errant <% or %> in my
> > code. Here's
> > what the top of the page looks like:
> >
> > <HTML>
> > <HEAD>
> > <TITLE></TITLE>
> > <SCRIPT LANGUAGE="JavaScript">
> > ... Bunch of JavaScript...
> > </SCRIPT>
> > </HEAD>
> > <BODY>
> > ... Bunch of HTML ...
> > </BODY>
> > </HTML>
> >
> > There's no JSP-related code in the file right now but I plan on
> adding
> > some later and didn't want to have to change the filename. Any ideas?
> >
> > Thanks,
> > Lin
> >
> > ==================================================================
> > =========
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > FAQs on JSP can be found at:
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> >
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html