- This topic has 5 replies, 2 voices, and was last updated 19 years, 10 months ago by Riyad Kalla.
-
AuthorPosts
-
AnnekeMemberHi,
I’m developping a website, with Java Server Faces.. My homepage contains page fragments… But I get the following error when loading my homepage…
When I set a simple jsp-page as startpage, it works perfect…java.io.IOException: javax.servlet.jsp.JspException: The taglib validator rejected the page: "org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed., " at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:130) at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258) at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:388) at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:238) at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:188) at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:535) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:373) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:312) at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130) at com.sun.jsfcl.app.ViewHandlerImpl.renderView(ViewHandlerImpl.java:169) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Here is the code of my homepage.jsp
<?xml version="1.0" encoding="UTF-8"?> <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page"> <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/> <f:view> <html lang="nl-BE" xml:lang="nl-BE"> <head> <meta content="no-cache" http-equiv="Cache-Control"/> <meta content="no-cache" http-equiv="Pragma"/> <title>OltbHomePage Title</title> <link href="resources/stylesheet.css" rel="stylesheet" type="text/css"/> </head> <body style="-rave-layout: grid"> <h:form binding="#{OltbHomePage.form1}" id="form1"> <div style="left: 0px; top: 0px; position: absolute; height:580px"> <jsp:directive.include file="OltbMenu.jspf"/> </div> <div style="left: 180px; top: 0px; position: absolute; height:50px"> <jsp:directive.include file="OltbStatus.jspf"/> </div> <div style="height: 530px; left: 120px; top: 50px; position: absolute; width: 900px"> <iframe name="OltbMain" src="" style="left: 0px; top: 10px; position: absolute; height:510; width:890"></iframe> </div> </h:form> </body> </html> </f:view> </jsp:root>
Thx in advance
Ann
Riyad KallaMemberAnd I’m assuming when you remove the jsp include’s the page works fine?
AnnekeMemberHi,
It works when I only have the following code in my body….
<body style="-rave-layout: grid"> <iframe name="OltbMain" src="" style="left: 0px; top: 10px; position: absolute; height:510; width:890"></iframe> </div> </body>
Thx in advance
Ann
Riyad KallaMemberHrrm… I honestly have no idea, I’ve never seen that error before. Have you asked in the JSF Sun Forums?
AnnekeMemberHi,
I’m using frames now and this works fine… I read somewhere that you needed to use page fragments, in order to use ‘a kind of frames’ with java server faces….
But anyway, it works now… 😀
Thx
Ann
Riyad KallaMemberVery cool, thank you for the followup.
-
AuthorPosts