Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SCRIPT tag in JSP causes error

Status
Not open for further replies.

petey

Programmer
Mar 25, 2001
383
US
Has anybody else seen this behavior?

I have a JSP that contains regular old HTML and regular old JavaScript (not between the <% %> delimiters) in addition to chunks of Java code (between the <% %> delimiters).

The page would not compile until I either printed the SCRIPT tag explicitly...
Code:
<% out.println(&quot;<script language=\&quot;javascript\&quot;></script>&quot;); %>
...or broke the SCRIPT tag apart...
Code:
<scri<% %>pt language=&quot;javascript&quot;>
I'm curious if anybody else has encountered this and could shed light on it. I'm using GNU JSP with Apache.

-Petey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top