Isn't that a pretty bad bug for the compiler to try to run that?

Dion

--
         \\|//
         (o o)
+----oOOo-(_)-oOOo--------------------------------------------------+
|   [EMAIL PROTECTED]   | "Trust in God,                              |
| www.almaer.com/dion |  but lock your car."                        |
+-------------------------------------------------------------------+

On Tue, 5 Oct 1999, Brien Voorhees wrote:

> That's a good idea.  Shouldn't it be <%="i"$>, though?
> Brien
>
> ----- Original Message -----
> From: Paul Medcraft <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 05, 1999 5:11 AM
> 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
>

===========================================================================
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

Reply via email to