facebook

JSTL autocomplete in JSPX

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #220516 Reply

    erayl
    Member

    I have a jspx document that uses the following html element:

    <html
    xmlns=”http://www.w3.org/1999/xhtml&#8221;
    xmlns:jsp=”http://java.sun.com/JSP/Page&#8221;
    xmlns:c=”http://java.sun.com/jstl/core&#8221;
    xmlns:fmt=”http://java.sun.com/jstl/fmt&#8221;
    xmlns:toolstag=”urn:jsptagdir:/WEB-INF/tags”
    xml:lang=”en” lang=”en”>

    Autocomplete for JSTL tags is not working. Is this a currrent limitation or am I doing something wrong?

    Ed

    #220545 Reply

    Riyad Kalla
    Member

    Ed,
    I believe this is a current limitation of the editor not fully supporting JSP Documents, are you able to get correct completion if you move those URIs out into <%@taglib%> entries?

    #220547 Reply

    erayl
    Member

    Yes that works, but this ‘tag’ violates a valid JXPX document. Could you file a bug for me on this issue?

    #220549 Reply

    Riyad Kalla
    Member

    Could you file a bug for me on this issue?

    Absolutely, I just wanted to make sure that was the problem. Can you paste in an example well-formed XML Document that you are using so I can attach it to the bug?

    #220552 Reply

    erayl
    Member

    Below is both a well formed and valid JSP 2.0 document. Notice that the <jsp:output> element will display as a error in MyEclipse if the extension is changed to .jsp rather than .jspx.

    <?xml version=”1.0″ encoding=”iso-8859-1″ ?>
    <html
    xmlns=”http://www.w3.org/1999/xhtml&#8221;
    xmlns:jsp=”http://java.sun.com/JSP/Page&#8221;
    xmlns:c=”http://java.sun.com/jstl/core&#8221;
    xmlns:fmt=”http://java.sun.com/jstl/fmt&#8221;
    xml:lang=”en” lang=”en”>
    <jsp:output
    doctype-root-element=”html”
    doctype-public=”-//W3C//DTD XHTML 1.0 Transitional//EN”
    doctype-system=”http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221; />
    <jsp:directive.page contentType=”text/html; charset=iso-8859-1″ language=”java” errorPage=”” />

    <head>
    <title>My JSPX ‘MyJspX.jspx’ starting page</title>
    <meta http-equiv=”pragma” content=”no-cache” />
    <meta http-equiv=”cache-control” content=”no-cache” />
    <meta http-equiv=”expires” content=”0″ />
    <meta http-equiv=”keywords” content=”keyword1,keyword2,keyword3″ />
    <meta http-equiv=”description” content=”This is my page” />
    <meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
    <!–
    <link rel=”stylesheet” type=”text/css” media=”screen” href=”styles.css”>
    –>
    </head>
    <body>
    This is my JSPX page.<br />
    </body>
    </html>

    #220560 Reply

    erayl
    Member

    It appears that the forum software has removed all the leading indentation. Please add it back for the bug report. Thanks

    #220561 Reply

    Riyad Kalla
    Member

    Got it erayl, thank you for your help.

    Also, when you want to post code snippets:

    
    This is a code snippet
    

    You can either type in the pnpBB code for it or hit the “post reply” button and use the full posting page which has buttons to quick insert wrappers like that.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: JSTL autocomplete in JSPX

You must be logged in to post in the forum log in