Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Javascript less than operator '<' in JSP page
Javascript less than operator '<' in JSP page [message #194009] Tue, 05 June 2007 22:44 Go to next message
Danilo Camara is currently offline Danilo CamaraFriend
Messages: 1
Registered: July 2009
Junior Member
I have a JSP supposed to output a Javascript page. I set the content
type using:

<%@ page contentType="text/javascript; charset=UTF-8"
pageEncoding="UTF-8" %>

Everything works fine in Tomcat and in the client browser, but Webtools
JSP editor warns me about errors in every less than operator '<' in the
Javascript code. The same happens for 'logical and' operator '&&'.

The same doesn't happen if I was outputting a HTML page as the editor
recognizes the <script type="text/javascript"> tag. Shouldn't I been
outputting a Javascript page in the first place or how can I avoid these
errors and warnings in the editor?

Thanks
Re: Javascript less than operator '<' in JSP page [message #194157 is a reply to message #194009] Thu, 07 June 2007 12:19 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

Danilo Figueira Câmara wrote:
> I have a JSP supposed to output a Javascript page. I set the content
> type using:
>
> <%@ page contentType="text/javascript; charset=UTF-8"
> pageEncoding="UTF-8" %>
>
> Everything works fine in Tomcat and in the client browser, but Webtools
> JSP editor warns me about errors in every less than operator '<' in the
> Javascript code. The same happens for 'logical and' operator '&&'.
>
> The same doesn't happen if I was outputting a HTML page as the editor
> recognizes the <script type="text/javascript"> tag. Shouldn't I been
> outputting a Javascript page in the first place or how can I avoid these
> errors and warnings in the editor?

Which version are you running, and are there any extras in your
environment?

--
Nitin Dahyabhai
Structured Source Editor


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:WTP SERVER implementation
Next Topic:Help testing new packages
Goto Forum:
  


Current Time: Fri Mar 29 15:33:10 GMT 2024

Powered by FUDForum. Page generated in 0.04083 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top