Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Maxim Mossienko 
Subsystem
J2EE.JSP 
Affected versions
Fixed in
Fixed in build
Next build 
  • Submitted by   Konstantin Solomatov
    4 years ago (27 Oct 2005 15:43)
  • Updated by   root
    6 months ago (17 Jan 2010 19:24)
  • Jira: IDEA-30376
    (history, comments)
IDEA-30376 If I am usin jsp to generate other content than (x)html IDEA highlights all tags as errors
0

Attachments

screenshot-1.jpg   (46 KB)
I am want to use JSP to generate XML (JNLP files for webstart) but IDEA highlights everything as errors, but it can understand that it isn't HTML because i set text/xml in @page directive

Issue was resolved
Comments (3)
 
History
 
Linked Issues (0)
 
Maxim Shafirov
  Maxim Shafirov
02 Nov 2005 00:01
(4 years ago)
Would you please be a bit more specific? What errors? What everything? A sample file will rock!
Sascha Weinreuter
  Sascha Weinreuter
16 Dec 2005 16:02
(4 years ago)
Here it is.

IDEA doesn't seem to like the content-type "application/x-java-jnlp-file". All tags are highlighted in red although there's nothing that would instruct IDEA to do any error checking on the created content.

<?xml version="1.0" encoding="iso-8859-1"?>

<%@ page import="java.net.URL" %>
<%@ page contentType="application/x-java-jnlp-file" %>

<% final String codebase = new URL(new URL(request.getRequestURL().toString()), ".").toExternalForm(); %>

<jnlp codebase="<%= codebase %>">
  <information>
    <title>something</title>
  </information>

  <security>
    <all-permissions />
  </security>

  <resources>
    <j2se version="1.4" />

  </resources>

</jnlp>
Sascha Weinreuter
  Sascha Weinreuter
16 Dec 2005 17:34
(4 years ago)
Inserting the proper doctype for JNLP helps to get rid of the error highlighting, but IDEA should still not attempt to validate the file if no DTD information is present - like it works for plain XML files.

<!DOCTYPE jnlp
PUBLIC "-//Sun Microsystems, Inc//DTD JNLP Discriptor 1.1//EN"
"http://java.sun.com/products/j2se/dtds/jnlp_1_0.dtd">