facebook

[Closed] problem with included jsp

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

    akhenaton
    Member

    Hello,
    I try to use included jsp pattern in my project but I always get errors with taglibs tag :
    in file header.jsp, i get a “Tag <html:html not properly ended” error
    in file main.jsp, i get a “The end tag “</html:html” is unbalanced” error

    header.jsp :
    <%@ page language=”java” pageEncoding=”ISO8859-1″%>
    <%@ taglib uri=”http://struts.apache.org/tags-bean&#8221; prefix=”bean” %>
    <%@ taglib uri=”http://struts.apache.org/tags-html&#8221; prefix=”html” %>
    <%@ taglib uri=”http://struts.apache.org/tags-logic&#8221; prefix=”logic” %>
    <%@ taglib uri=”http://struts.apache.org/tags-tiles&#8221; prefix=”tiles” %>
    <html:html>
    <body>

    main.jsp :
    <%@ include file=”header.jsp” %>
    Hello
    <%@ include file=”footer.jsp” %>

    footer.jsp :
    </body>
    </html:html>

    I get theses errors both in MyEclipse JSP Editor and standard jsp editor
    is there any solution ?
    Thanks

    #240989 Reply

    Riyad Kalla
    Member

    The solution is to rename your header and footer pages with a .jspf extension, since they are not valid JSP pages and must be marked as JSP Fragments. The only valid page here is main.jsp (after the inclues are processed).

    #241018 Reply

    akhenaton
    Member

    it works. thanks.
    I’ve seen that I could also use Apache Tiles…

    #241022 Reply

    akhenaton
    Member

    oups…
    It works at compile time but fails at runtime with same error…
    never mind, i’ve changed <html:html> to the basic <html> tag and it works. I don’t the disadvantage but I can go further…

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] problem with included jsp

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