• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problems in including a jsp page dynamically

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to see how to include a jsp page dynamically.The page to be included(callme.jsp) contains only 1 jsf component which is a Textfield.Now as per the documentation , in the parent page I have ,
<f:subview id="sv1">
<jsp:include page="callme.jsp" />
</f:subview>

I use sun java studio creator 2 to make WAR and deploy that to tomcat 5.0.On accessing the parent page I get error

com.sun.rave.web.ui.appbase.ApplicationException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Assertion Failed
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java: 601)
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.ja va:316)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87 )
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)


I think I have followed the proper way (or not?) to include page dynamically.Something missing?.
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you followed the requirement that all non-JSF tags and content be wrapped in <f:verbatim> tags in your included JSP? That might be your issue, but I can't tell without examining the included page.
 
nitin bharat
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The jsp page to be included is as follows:
<?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" xmlns:ui="http://www.sun.com/web/ui">
<jsp irective.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
<f:view>
<ui age binding="#{newPage.page1}" id="page1">
<ui:html binding="#{newPage.html1}" id="html1">
<ui:head binding="#{newPage.head1}" id="head1">
<ui:link binding="#{newPage.link1}" id="link1" url="/resources/stylesheet.css"/>
</ui:head>
<ui:body binding="#{newPage.body1}" id="body1" style="-rave-layout: grid">
<ui:form binding="#{newPage.form1}" id="form1">
<ui:textField binding="#{newPage.textField1}" id="textField1" style="position: absolute; left: 168px; top: 192px"/>
</ui:form>
</ui:body>
</ui:html>
</ui age>
</f:view>
</jsp:root>
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic