jsp:include in JSF

Hello all,
I am having a problem including a jsp page into another jsp where both are using the JSF framework.
If I used the <f:view> and bring up just that page by itself (not included in another page), it works fine. And if I include it in a page with no <f:view> tags, it works fine. But when I include it in a page with <f:view> tags and <f:subview> tags in the included page, it's like it pulls the JSF components out of the section of code it was in. I don't know if this is a bug or just something I'm doing incorrectly, but I don't understand why JSF needed to make page includes so difficult.
My current setup is like this.
A.jsp
<taglibs>
<html>
<body>
<table>
<f:view>
<h utputText />
.........more code......
</f:view>
<jsp:include page="B.jsp" flush="false" />
</table>
</body>
</html>
B.jsp
<taglibs>
<% scriptlet %>
<f:subview>
<h:form>
<table>
...Some table stuff...
<tr>
<td>
<h:commandLink /> (this is what is not working)
</td>
</tr>
</table>
</h:form>
</f:subview>
Hopefully someone can look at this and give me some advice on how to structure the <jsp:include>, I've tried all sorts of things. I've tried subview in different ways to no avail. Thanks for the help.
Patrick

here is a sample JSP
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:view>
<f:verbatim>
<html>
<body>
<table width="100%" cellspacing="0" cellpadding="0">
     <tbody>
     <tr>
          <td>
               </f:verbatim>
               <f:subview id="header">
                    <jsp:include page="<%=(String) request.getAttribute("header")%>"/>
               </f:subview>
               <f:verbatim>
          </td>
     </tr>
     </tbody>
</table>
</body>
</html>
</f:verbatim>
</f:view>

Similar Messages

  • Using jsp:include in jsf

    I want to include a jsp page in another jsp page. My code is as follows:
    1)
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:c="http://java.sun.com/jstl/core"
    version="2.0">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Page Title</title>
    </head>
    <body>
    <f:subview id="sub">
    <jsp:include page="/demo.jsp"/>
    </f:subview>
    </body>
    </html>
    </jsp:root>
    2) demo.jsp is given below
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:c="http://java.sun.com/jstl/core"
    version="2.0">
    <ui:composition>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Page Title</title>
    </head>
    <body>
    <h:outputText value="Hello"/>
    </body>
    </html>
    </ui:composition>
    </jsp:root>
    but when i run this application i get error as follows:
    javax.servlet.ServletException: @15,48 <jsp:include> Tag Library supports namespace: http://java.sun.com/JSP/Page, but no tag was defined for name: include
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:270)
         org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
         org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
         org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
         org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)

    You're mixing two view technologies with each other: JSP and Facelets. You cannot do that. Use the one or the other. In Facelets you can just use <ui:include>. Leave all of those legacy <jsp> tags out when using Facelets.
    By the way, although the <f:subview> is superfluous in Facelets and only used in JSP, I wanted to tell you, this tag is better to be placed in the include file, not in the parent file. Otherwise you may risk "duplicate component ID" problems.

  • How to include jsp page in jsf ???

    Hi,
    I use JDeveloper 11g and the framework ADF. I want to include a jsp page in another page ( jsf page).
    In fact, I do this :
    <f:view>
    *<jsp:include page="/Menu/MenuGlobalDynamique.jsp"/>*
    </f:view>
    when i run my jsf page nothing is displayed and i have this error :
    javax.servlet.ServletException: Erreur OracleJSP :
    oracle.jsp.parse.JavaCodeException: Ligne n° 19, oracle.jsp.parse.JspParseTagDeclaration@cf767d <br>Erreur : Java code in jsp source files is not allowed in ojsp.next mode.
         at oracle.jsp.runtimev2.JspReportUtil.reportException(JspReportUtil.java:180)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:692)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:722)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:646)
    Have you an idea to help me and resolve my problem.
    Thank you.

    Hi,
    Can you post the source of the MenuGlobalDynamique.jsp page?
    if MenuGlobalDynamique.jsp is a JSF page and you want to include it into other JSF page you must mark out (or delete) this parts from the MenuGlobalDynamique.jsp like here:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces"
              xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
      <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
                  doctype-system="http://www.w3.org/TR/html4/loose.dtd"
                  doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <!--
      <f:view>
        <afh:html>
          <afh:head title="impForm">
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
          </afh:head>
          <afh:body>
            <af:messages/>
            <af:form>
    -->
    <!--
            </af:form>
          </afh:body>
        </afh:html>
      </f:view>
    -->
    </jsp:root>regards,
    Branislav

  • Passing parameters to included JSP files using JSF

    I have included JSP, which I use in many other JSP files. I want to display message in this included JSP which depends on the information in JSP files which include this JSP. How can I do this without using scriptlets?
    Message was edited by:
    cheltsov

    I have one included page in one jsp page(mother page). I have included it by jsp:include tag. The included page consists of two inputText. I need to pass the parameters of the mother page together with the parameters in the included page in the backingBean of the mother page. Hope this one is clearer.
    The code snippet in the mother page looks like this
    <jsp:include page="/pages/ps/sample_rep2.jsp"/>.
    In the sample_rep2.jsp, I have two inputText. How can I pass this in the backingBean of the motherpage.
    The sample_rep2.jsp is the included page here. The sample_rep2.jsp looks like this:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <af:panelBox>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <af:panelBox>
    <af:inputText label="User ID" id="userid" value="CDOUGLAS"/>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <af:panelBox>
    <af:inputText label="User ID" id="userid" />
    <af:inputText label="Age" id="age"/>
    </af:panelBox>

  • How to dynamically include jsp files using jsf el in include tag ?

    Hi,
    I'm trying to get the jsp file name from my backing bean to use it in an include tag but I can't make it work
    When using this piece of code I can get the generated path
             <h:outputText value="/_partial/#{myBean.jspName}.jsp"/>whereas in this code the jsf el is not replaced by this value.
            <%@ include file="/_partial/#{myBean.jspName}.jsp" %> Have you any idea of how to solve this ? I'm currently developing for J2EE 1.4 platform.     
    Thanks for your help,
    Regards.

    If you're using JSF 1.2 and JSTL 1.2 at a JSP 2.1 environment, then you can just use <jsp:include> with unified EL.
    If you're using JSF 1.1, then you may find this article useful [http://balusc.blogspot.com/2007/01/dynamic-jsf-subviews.html]

  • Jsp:include doesn't work in JSF (Trinidad)

    Hallo,
    first: i'm a newbe in JSF - so sorry for stupid questions.
    I would like to include a page with some trinidad-tags in my jsf-page (into the body).
    But running the application the included page isn't shown. Looking to the generated html-code the included code is shown between the head- and body-tag -> not rendered as html-tag but still as trinidad-tags.
    I do not understand why :(
    I tried to integrate my jsp:inlcude with <f:subview> and also with <h:panelGroup> but without different results. Also I've tried to use <jsp:directive.include> but nothing different happens.
    Does anybody know what I'm doing wrong?
    Thanks for help

    The way I include another faces file is to use the following syntax:
    <body>
    <jsp:include page="/header.jsp"/>
    the header.jsp file is a file that contains JSF components, but its included using the jsp extension since you already within the mist of a request.
    And in the included file, you MUST have everything surround with a subview tag with an ID attribute...
    <f:subview id="headerView">
    </f:subView>
    And lastly, something to always remember...everything in your included page must be contained within JSF components. You cannot have straight html, it must be surrounded with verbatim tags. The reason being when the page is included, the components from the page are included into the main pages component tree. The HTML from those components is output and then any regular html markup in the page is output AFTER the components output.

  • Dynamic JSP's includes from JSF Java Beans

    Hi!
    I�m David from Barcelona.I'm testing different JSF components.
    I'm working with MyFaces components, with Tabs, binding the component like this to create sub tabs dynamically:
    <t:panelTabbedPane binding="#{editorPanelBean.pane}"/>
    Now, in the bean, I use the Application class to create
    my pane and child tabs:
    UIComponent pane = app.createComponent(TABBEDPANE);
    UIComponent childtab = app.createComponent(PANELTAB);
    HtmlPanelTab tab = (HtmlPanelTab) childtab;
    I want to start adding contents to my child tabs.
    Am I locked into doing it programmatically or is it possible to somehow refer back to a JSP page
    with an include to generate the contents of each tab child?
    I can do it without binding the panelTabbedPane component, but the problem it's when I construct the component with a binding, then the include JSP doesn't work. I have tried with a Verbatim and HtmlOutputText but no results, like this:
    HtmlTabItem aHtmlTabItem = (HtmlTabItem) application.createComponent(HtmlTabItem.COMPONENT_TYPE);
    aHtmlTabItem.setValue(valor);
    aHtmlTabItem.setId(viewRoot.createUniqueId());
    UIOutput verbatim1 = (UIOutput) application.createComponent("javax.faces.Output");
    //verbatim1.setValue("<f:subview id=\""+viewRoot.createUniqueId()+"\"><jsp:include page=\"ficha_paciente_tab2.jsp\" flush=\"false\"/></f:subview>");
    verbatim1.setValue("<%@ include file=\"ficha_paciente_tab2.jsp\" %>");
    verbatim1.getAttributes().put("escape", Boolean.FALSE);
    verbatim1.setId(viewRoot.createUniqueId());
    aHtmlTabItem.getChildren().add(verbatim1);
    How can I include dynamically from my bean a JSP page with the HTMlL design of each tab and anything I want to ?
    Any help would be great !
    Thanks!

    1. username and password should be simple String properties, don't make it any more difficult than it needs to be.
    2. if (result == "success")
    Oh dear, Java 101 mistake. You want to use result.equals("success") to make that work.
    Another observation: you may want to move all the database code to a separate class. If you put database logic in seperate classes with specific methods (login(), logout(), getAllUsers(), etc.) you not only make your code more readable but you make it possible to re-use those methods in different parts of your code.

  • Newbie Alert: How can I include a JSF in a JSF

    Sorry for what must be a really stupidly easy question but I have tried every way I can think to get one JSF page to include another JSF page. For instance I want to include a standard site wide header. I am using jspx and have tried
    <f:subview id="header">
        <jsp:include page="header.jsf"/>
    </f:subview>and
    <f:subview id="header">
        <c:import url="header.jspx"/>
    </f:subview>and every variation you can imagine (both .jsf and .jspx extentions, with and without a rendered property on the subview, including everything in the included page in f:verbatim and a million other things). My header page is as simple as <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="2.0"
         xmlns:jsp="http://java.sun.com/JSP/Page"
         xmlns:c="http://java.sun.com/jsp/jstl/core"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:h="http://java.sun.com/jsf/html">
         <f:view>
              <f:verbatim>
    <p>this is a header</p>
              </f:verbatim>
         </f:view>
    </jsp:root>All the questions I have found seem to indicate that the above should work but I just get
    javax.faces.FacesException: Assertion Failed
         at com.sun.faces.util.Util.doAssert(Util.java:1302)
         at com.sun.faces.taglib.jsf_core.ViewTag.getComponentType(ViewTag.java:241)
         at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1013)
         at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1036)
         at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:749)
         at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:429)
         at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java:105)
         at org.apache.jsp.header_005f1_jspx._jspx_meth_f_view_0(header_005f1_jspx.java:77)
         at org.apache.jsp.header_005f1_jspx._jspService(header_005f1_jspx.java:55)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)and various other errors along the same lines.
    Can someone please give me some pointers. A working example would be nice :o)
    Many Thanks

    Many thanks. I still can't seem to get it to work though. I must be missing something really obvious. Could you have a quick look over these pages and tell me if anything is wrong.
    The including page (called page.jspx):
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="2.0"
         xmlns:jsp="http://java.sun.com/JSP/Page"
         xmlns:c="http://java.sun.com/jsp/jstl/core"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:h="http://java.sun.com/jsf/html">
         <jsp:directive.page contentType="text/html"/>
         <f:view>
              <f:loadBundle basename="localization.messages" var="text"/>
              <f:verbatim>
                   <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">]]>
              </f:verbatim>
              <html xmlns="http://www.w3.org/1999/xhtml">
                   <head>
                        <title>Example</title>
                   </head>
                   <body>
                        <jsp:include page="simple_header.jsf"/>
                   </body>
              </html>
         </f:view>
    </jsp:root>the included page called simple_header.jspx
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="2.0"
         xmlns:jsp="http://java.sun.com/JSP/Page"
         xmlns:c="http://java.sun.com/jsp/jstl/core"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:h="http://java.sun.com/jsf/html">
         <f:subview id="header">
              <f:verbatim>
                   <p>Bar</p>
              </f:verbatim>
         </f:subview>
    </jsp:root>and finally the error message
    java.io.IOException: Stream closed
         org.apache.jasper.runtime.BodyContentImpl.ensureOpen(BodyContentImpl.java:576)
         org.apache.jasper.runtime.BodyContentImpl.write(BodyContentImpl.java:140)
         org.apache.jasper.runtime.BodyContentImpl.write(BodyContentImpl.java:157)
         org.apache.jsp.page_jspx._jspx_meth_f_view_0(page_jspx.java:102)
         org.apache.jsp.page_jspx._jspService(page_jspx.java:58)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    blah blah blah...

  • JSP include directive not working with Tomcat 5.0

    Hi.
    I'm developing a small JSF webapp under Tomcat 5.0. My idea was to use the include directive to display a navigation panel on every JSP page.
    I took the code straight from the Java Web Services Tutorial; the resulting page looks like this:
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
           version="2.0">
    <jsp:directive.page contentType="text/html;charset=iso-8859-1"/>
    <%@ include file="/jsp/panelpage_header.inc" %>
         <h:outputText value="Welcome!"/>
    <%@ include file="/jsp/panelpage_footer.inc" %>
    </jsp:root>However, when I try to load the page, a compilation error occurrs:
    org.apache.jasper.JasperException: /trias/welcome2.jsp(11,2) The content of elements must consist of well-formed character data or markup.
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
    ...I checked the path to the included files, and it seems to be okay. The files themselves contain the JSF tags for the view, html-head, html-body etc. The compiler doesn't even care if the files exist or not because it aborts immediately when it reaches the first include-statement.
    Did anyone see this kind of error before?

    Ok, the solution with jsp:directive.include works,
    if header.inc and footer.inc themselves are well
    formed too. If I understood the concept right this is
    because header and footer are processed during
    request time and therefore interpreted as
    'standalone' pages.This isn't true. The include directive (<jsp:directive.include>) is run a Compile Time. The code is inserted directly into the surrounding JSP (unlike <jsp:include> which forwards the request at runtime). The finished JSP, after the include, is then processed and needs to be well-formed XML.
    >
    But: What can I do when these two files define a tag
    that should enclose my current page (for example,
    header opens a panelGrid-Tag, and footer closes it).
    For this case I thought the use of the
    @include-directive would be neccessary to combine the
    three pages during compilation. By this the resulting
    page would be well-formed although header and footer
    are not.It should be, as long as you are using <jsp:directive.include>, and the rest of the included pages are also well formed (no <% %> tags, nothing else out of place...).
    Honestly, I haven't done much work with JSP documents, so I haven't run into this problem. But I do believe everything I said is correct.
    What I would do is double check the correctness of the rest of the included pages and see if your error isn't something else.

  • Using jsp:include in showOneTab - main form not loaded on submit

    I have a JSP page with JSF and ADF components. It is a large JSP containing some main details and then an af:showOneTab component to create a set of tabs. It works fine with JDK 1.5 and Tomcat 5.0 but when changed to Oracle Application Server 9.0.4 and JDK 1.3 We get the following error:
    JspCompileException:.... code too large for try statement catch( Throwable e}....
    Finding this to be caused by large size of JSP, we divided the page as follows - a main jsp containing the main form details and 1 jsp for each tab. Whenever one of the tabs is clicked the corresponding JSP is dynamically loaded using jsp:include tag as follows:
    <af:showDetailItem text="Tab1" id="tab1" styleClass="menu">
              <f:subview id="viewTab1">
                   <jsp:include page="Tab1.jsp" />
              </f:subview>
    </af:showDetailItem>
    There is a Submit button in the main jsp, when this is clicked the main jsp is reloaded.
    But when the user navigates to any of the tabs and then clicks the Submit button in the main form, the main form is not reloaded - only the jsp for the currently selected tab is loaded.
    (I am using f:view and h:form in the main form, and no form tag in the included jsps)
    How to solve this problem?

    The af:selectOneChoice components are in the test.jsp page included in main.jsp with jsp:include tag.
    The code look like this:
                   <af:selectOneChoice label="#{msg.team}"
    id="soc1"
    value="#{myBean.selectedTeamID}"
    autoSubmit="true">
    <f:selectItems id="si1" value="#{myBean.teamList}"/>
    </af:selectOneChoice>
    <af:selectOneChoice label="#{msg.subteam}"
    id="soc2"
    value="#{myBean.selectedSubteamID}"
    partialTriggers="soc1"
    rendered="#{myBean.selectedTeamID!=null}"
    autoSubmit="true">
    <f:selectItems id="si2" value="#{myBean.subteamList}"/>
    </af:selectOneChoice>
    the code works fine in the seperate page, but when I include the page the second selectOneChoice component doesnt get rendered.
    Edited by: Migan on 2010-jul-13 08:36

  • A peculiar problem using jsp:include conditionally

    Hi,
    This is regarding usage of jsp:include in Myfaces 1.1.4.
    lets say the page containing the jsp:include statements as PARENT PAGE
    I have a requirement to display some components in the PARENT PAGE which are continued from the same form using different JSPs since the components are different based on a condition.
    I used the following code:
    <h:panelGrid id="CandidateRequestorView" rendered="#{RgsViewRequirementBB.displayCandidateView}" columns="1">
         <jsp:include page="/RGSPages/requestorViewReq.jsp"/>
    </h:panelGrid>
    <h:panelGrid id="CandidateMatcView" rendered="#{!RgsViewRequirementBB.displayCandidateView}" columns="1">
         <jsp:include page="/RGSPages/matcViewReq.jsp"/>
    </h:panelGrid>Now if I use only 1 panel grid (any one out of the above 2) it works. I didnt even use <f:subview> any where( neither in the PARENT PAGE nor in the included jsps), but it works.... Also for your knowledge these jsps contain only JSF elements( no plain HTML code is used)
    But if I am using the above displayed code to have both the jsps (actually only one will be displayed bcoz the same condition is used)
    then its not displaying all the contents of included jsp. (YES I AM ABLE TO GET TO THE JSP...THERE IS NO ERROR) There is a datatable inside this jsp which is not rendered......
    I have used <f:subview> when i faced this problem.......
    I have tried every combination....writing <f:subview> in the PARENT PAGE ....writing in included jsps and removed it from PARENT PAGE.....also some of the articles in the forum mentioned that <f:subview> element should not be used inside <h:panelgrid> .....i even tried that....but final result is same as I was getting the first time...
    I am able to reach the jsp page (with or without <f:subview>) but i am not able to display all the contents....but if i use only one of the included jsps(by removing any one of the panel grids) I am able to view them. Since I am able to view all the contents when i view these pages inside the PARENT PAGE one at a time, that indicates there is no problem in datatable contained in these pages.....
    ( Also I have not used <f:view> inside my included jsps.)
    Please help to solve this problem...
    Thanks
    Avner

    Hi BalusC,
    The RgsViewRequirementBB is already in the session scope.
    Also I am using the setDisplayCandidateView(true) or setDisplayCandidateView(false ) explicitly as depicted below. The page is still under construction thats why the rendered attribute is explicitly set.
    public RgsViewRequirementBackingBean() {
    super();
    // TODO Auto-generated constructor stub
    try{
                setDisplayCandidateView(true);
                 // some more code goes in here
         catch(Exception){
               ResourceBundle bundle = null;
               bundle = ResourceBundle.getBundle("resources.ErrorMessages", FacesContext.getCurrentInstance().getViewRoot().getLocale());
                 //some more code goes in here
    }

  • Problem with jsp tag in jsf file c:import

    <!-- <c:import url="#{backing_Home.whichMenu}"/>-->
    <jsp:include page="#{backing_Home.whichMenu}"/>
    I am trying to use a JSF variable in jsp tag
    I am getting error like this
    javax.servlet.jsp.JspTagException: /#{backing_Home.whichMenu}     at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(ImportSupport.java:318)     at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:186)     at _Home_2e_jsp._jspService(Home.jsp:24) I want to add a page dynamically using that variable
    Is there any other method

    This code works fine for me:
    <%@ taglib uri="/jstl-c" prefix="c" %>
    <html>
         <body>
         <%
              int array[] = new int[] {1,2};
              session.setAttribute("array", array);
              String arrayNames[] = new String[]{"One", "Two"};
              session.setAttribute("arrayNames", arrayNames);
         %>
              <form action="?">
              <select name="select">
                   <c:forEach items='${ sessionScope.array}' var="row">
                        <c:choose>  
                             <c:when test="${param.select== row}"> >
                                  <option value="<c:out value='${row}'/>" selected><c:out value="${sessionScope.arrayNames[row-1]}"/></option>
                             </c:when>   
                             <c:otherwise>
                                  <option value="<c:out value='${row}'/>"><c:out value="${sessionScope.arrayNames[row-1]}"/></option>
                             </c:otherwise>
                        </c:choose>
                   </c:forEach>
              </select>
              <input type="submit" name="submit" value="submit"></input>
              </form>
         </body>
    </html>
    good luck.
    MatrixPooh
    www.bizdisplay.com

  • Composing a view with JSPs passing parameters (JSF 1.2)

    hi,
    I want to include a JSP in another twice. The two includes should work on different backing bean instances. (Of cource the include contains JSF components)
    Business case: An insurance policy has one reference to a person in the role insured person and another in the role policy owner. I would like to use the same JSP to present the two persons.
    Here is the question
    - Is it possible to pass parameters to an included JSP?
    - I tried it out (see code below) and it did not work using the reference implementaion 1_02-b08. Is there a mistake in the code or is this not supported? I checked the spec, but chapter 9.2.9 does not provide any information about the topic.
    - If this is not supported, how is this solved using standard jsp/jsf?
    (I know I can use facelets, but I expect a a solution in the standard)
    Kind regards
    Jan
    view.jsp:
    <f:view>
        <!-- the 'policy' is a managed bean with session scope  -->
        <jsp:include page="person.jsp>
            <jsp:param name="person" value="#{policy.insuredPerson}" />
        </jsp:include>
        <jsp:include page="person.jsp>
            <jsp:param name="person" value="#{policy.policyOwner}" />
        </jsp:include>
    </f:view>
    person.jsp (example displays the person's name)
    <h:outputText value="#{param.person.name}"></h:outputText>

    This is definitely supported in Apache Trinidad or Oracles ADF look at documentaion associated with Regions. I implemented this, in insurance policy, where we have each risk as a separate region that can be selectively included on a page.
    I know of no way of doing this in reference implemenation

  • Try again: jsp:include fails with NPE in ValueBindingImpl

    JSF 1.1, RichFaces 3.1.3, WebLogic 9.2.2.
    I asked about this a couple of weeks ago, but I didn't get any useful responses.
    I have a simple "toy" application using a tabpanel that works fine right now. There is one tab that I will want to repeat several times, with only variations in the data in the fields (and the tab title). So, I copied the current template of that tab into an include file and I'm trying to include it with "jsp:include" from the original page, with a parameter. I've read all the suggestions about how to get jsp:include working with JSF, but it still doesn't work.
    When I display the page, I just get this:
    java.lang.NullPointerException
         at com.sun.faces.el.ValueBindingImpl.(ValueBindingImpl.java:98)
         at com.sun.faces.application.ApplicationImpl.createValueBinding(ApplicationImpl.java:292)
         at javax.faces.webapp.UIComponentTag.setProperties(UIComponentTag.java:890)
         at org.ajax4jsf.webapp.taglib.UIComponentTagBase.setProperties(UIComponentTagBase.java:80)
         at org.ajax4jsf.webapp.taglib.HtmlComponentTagBase.setProperties(HtmlComponentTagBase.java:78)
         at org.richfaces.taglib.TabTag.setProperties(TabTag.java:568)
         at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1017)
         at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1036)
         at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:749)
         at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:429)
         at jsp_servlet.__main._jsp__tag42(__main.java:1603)
    ...more...The JSP code for the tab looks like this:
    <rich:tab id="property0"
                name="#{ratingRequest.propertyList[0].propertyID}"
                label="Property: #{ratingRequest.propertyList[0].propertyID}"
                rendered="#{ratingRequest.propertyList[0].used}">
         <f:subview id="propertysubview0">
              <jsp:include page="/faces/propertyTab.jsp">
                   <jsp:param name="propertyIndex" value="0" />
              </jsp:include>
         </f:subview>
    </rich:tab>The file this tries to include is this:
    <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
    <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:subview id="includedPropertyPage">
         <h:panelGrid id="propertyPanelGrid" columns="3">
              <h:outputText id="propertyIDOut" value="Property ID"/>
              <h:inputText id="propertyIDIn"
                              value="#{ratingRequest.propertyList[0].propertyID}">
                   <a4j:support id="propertyIDInSupport" event="onchange" reRender="propertyTable"/>
              </h:inputText>
              <rich:message for="propertyIDIn" showDetail="true"/>
              <h:outputText id="valueOut" value="Value"/>
              <h:inputText id="valueIn"
                              value="#{ratingRequest.propertyList[0].value}">
                   <a4j:support id="valueInSupport" event="onchange" reRender="propertyTable"/>
              </h:inputText>
              <rich:message for="valueIn" showDetail="true"/>
         </h:panelGrid>
    </f:subview>For more background, here's the code in the tab before I changed it to use jsp:include, and remember that this works:
    <rich:tab id="property0"
                name="#{ratingRequest.propertyList[0].propertyID}"
                label="Property: #{ratingRequest.propertyList[0].propertyID}"
                rendered="#{ratingRequest.propertyList[0].used}">
         <h:panelGrid id="property0PanelGrid" columns="3">
              <h:outputText id="propertyIDOut" value="Property ID"/>
              <h:inputText id="propertyIDIn" value="#{ratingRequest.propertyList[0].propertyID}">
                   <a4j:support id="propertyIDInSupport" event="onchange" reRender="propertyTable"/>
              </h:inputText>
              <rich:message for="propertyIDIn" showDetail="true"/>
              <h:outputText id="valueOut" value="Value"/>
              <h:inputText id="valueIn" value="#{ratingRequest.propertyList[0].value}">
                   <a4j:support id="valueInSupport" event="onchange" reRender="propertyTable"/>
              </h:inputText>
              <rich:message for="valueIn" showDetail="true"/>
         </h:panelGrid>
    </rich:tab>I don't have the source for the JSF implementation, but when I disassemble the class with the NPE, I see that the exception occurs in the ValueBindingImpl constructor that takes a Application object, and the NPE might occur because either the FacesContext or ExpressionInfoInstancePool is null (I think the former is the most likely, but I don't know why).

    Done. The results are ironically very similar to what happened with the BEA implementation, but I have a feeling this is something else, because it's failing not on the included page, but on a value binding on the main page. Perhaps I'm missing some property settings in my web.xml while using the RI.
    The entire stack trace is pretty large. I would have only included the excerpt from the root cause, but the JSF RI stack trace seems to have some interesting info up to that point. You'll see from the code at the top of the stack that either the FacesContext or the Application is null.
    org.apache.jasper.JasperException: Exception in JSP: /index.jsp:2
    1: <% session.invalidate(); %>
    2: <jsp:forward page="/faces/main.jsp"/>
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    org.apache.jasper.JasperException: Exception in JSP: /main.jsp:104
    101:                <rich:tab id="ratings" name="ratings" label="Ratings">
    102:                     <h:panelGrid id="ratingsPanelGrid" columns="3">
    103:                          <h:outputText id="field3Out" value="Field3"/>
    104:                          <h:inputText id="field3In" value="#{ratingRequest.field3}"/>
    105:                          <rich:message for="field3In" showDetail="true" passedLabel=" "/>
    106:                          <a4j:commandButton id="processRequest" value="Submit Request"
    107:                                             action="#{ratingRequest.processRequest}"
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
         org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
         org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:686)
         org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:656)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:45)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.ServletException: javax.servlet.jsp.JspException: null
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:837)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
         org.apache.jsp.main_jsp._jspService(main_jsp.java:134)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
         org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
         org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:686)
         org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:656)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:45)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.lang.NullPointerException
         com.sun.faces.util.Util.getValueBinding(Util.java:987)
         com.sun.faces.taglib.html_basic.InputTextTag.setProperties(InputTextTag.java:265)
         javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1027)
         javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046)
         javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:761)
         javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:451)
         com.sun.faces.taglib.html_basic.InputTextTag.doStartTag(InputTextTag.java:506)
         org.apache.jsp.main_jsp._jspx_meth_h_005finputText_005f3(main_jsp.java:1375)
         org.apache.jsp.main_jsp._jspx_meth_h_005fpanelGrid_005f3(main_jsp.java:1309)
         org.apache.jsp.main_jsp._jspx_meth_rich_005ftab_005f3(main_jsp.java:1278)
         org.apache.jsp.main_jsp._jspx_meth_rich_005ftabPanel_005f0(main_jsp.java:950)
         org.apache.jsp.main_jsp._jspx_meth_a4j_005fform_005f0(main_jsp.java:208)
         org.apache.jsp.main_jsp._jspx_meth_f_005fview_005f0(main_jsp.java:162)
         org.apache.jsp.main_jsp._jspService(main_jsp.java:124)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
         org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
         org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:686)
         org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:656)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:45)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

  • Struggling with "Includes in JSF"

    Hi,
    I am trying to include a jsp page onto another.. I am trying to include jsp page called left_frame.jsp in first_page.jsp.the code is below..
    1. first_page.jsp
    <%@ page contentType="text/html" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <html>
    <body>
    <f:view>
    Template text at the top of the main page.
    <br>
    <h:outputText value="Text from a JSF component in the main page" />
    <f:subview id="sv1">
    <jsp:include page="left_frame.jsp" />
    </f:subview>
    </f:view>
    </body>
    </html>
    2. left_frame.jsp
    <%@ page language="java" import="java.util.*" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <h:panelGrid width="100%" border="3" bgcolor="#669900">
    <tbody>
    <tr>
    <td width="100%" bordercolor="#669900" bgcolor="#669900"><div align="center">
         <h:outputText value="Sign In"/></div>
    </td>
    </tr>
    </tbody>
    </h:panelGrid>
    <h:form id="userForm">
    <p>
    <h:outputText value="User Name"/>
    <h:inputText     id="userName" required = "true" value="#{UserBean.userName}" size="15">
         <f:validateLength minimum="1" />
    </h:inputText>
    <h:outputText value="Password" />
    <h:inputSecret id="password" redisplay="false" required = "true" value="#{UserBean.password}" size="15">
              <f:validateLength minimum="3" />
    </h:inputSecret>
    </p>
    <h:messages style="font-weight: bold; color: #FF0000;" />
    <blockquote>
    <p>
    <h:commandButton id="signin" action="#{UserBean.loginUser}" value="SignIn"/>     
    </p>
    </blockquote>
    </h:form>
    <h:panelGrid width="100%" border="3" bgcolor="#669900">
    <tbody>
    <tr>
    <td width="100%" bordercolor="#669900" bgcolor="#669900"><div align="center">
         <h:outputText value="Newest Blogs"/></div>
    </td>
    </tr>
    </tbody>
    </h:panelGrid>
    But whenever i deploy it onto weblogic8.1 and type in this url " http://localhost:7001/blogTrial/first_page.faces" , my program just hangs..i get the following stack.
    Thread [ExecuteThread: '14' for queue: 'weblogic.kernel.Default'] (Suspended (exception javax.faces.FacesException))
         com.sun.faces.config.ManagedBeanFactory.newInstance(javax.faces.context.FacesContext) line: 210
         com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(javax.faces.context.FacesContext, java.lang.String) line: 253
         com.sun.faces.el.VariableResolverImpl.resolveVariable(javax.faces.context.FacesContext, java.lang.String) line: 78
         com.sun.faces.el.impl.NamedValue.evaluate(com.sun.faces.el.impl.ExpressionInfo) line: 125
         com.sun.faces.el.impl.ComplexValue.evaluate(com.sun.faces.el.impl.ExpressionInfo) line: 146
         com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(com.sun.faces.el.impl.ExpressionInfo) line: 243
         com.sun.faces.el.ValueBindingImpl.getValue(javax.faces.context.FacesContext, java.lang.String) line: 173
         com.sun.faces.el.ValueBindingImpl.getValue(javax.faces.context.FacesContext) line: 154
         javax.faces.component.html.HtmlInputText(javax.faces.component.UIOutput).getValue() line: 147
         com.sun.faces.renderkit.html_basic.TextRenderer(com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer).getValue(javax.faces.component.UIComponent) line: 82
         com.sun.faces.renderkit.html_basic.TextRenderer(com.sun.faces.renderkit.html_basic.HtmlBasicRenderer).getCurrentValue(javax.faces.context.FacesContext, javax.faces.component.UIComponent) line: 191
         com.sun.faces.renderkit.html_basic.TextRenderer(com.sun.faces.renderkit.html_basic.HtmlBasicRenderer).encodeEnd(javax.faces.context.FacesContext, javax.faces.component.UIComponent) line: 169
         javax.faces.component.html.HtmlInputText(javax.faces.component.UIComponentBase).encodeEnd(javax.faces.context.FacesContext) line: 712
         com.sun.faces.taglib.html_basic.InputTextTag(javax.faces.webapp.UIComponentTag).encodeEnd() line: 616
         com.sun.faces.taglib.html_basic.InputTextTag(javax.faces.webapp.UIComponentTag).doEndTag() line: 539
         com.sun.faces.taglib.html_basic.InputTextTag.doEndTag() line: 524
         jsp_servlet.__left_frame._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) line: 299
         jsp_servlet.__left_frame(weblogic.servlet.jsp.JspBase).service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) line: 33
         weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run() line: 996
         weblogic.servlet.jsp.JspStub(weblogic.servlet.internal.ServletStubImpl).invokeServlet(javax.servlet.ServletRequest, javax.servlet.ServletResponse, weblogic.servlet.internal.FilterChainImpl) line: 419
         weblogic.servlet.internal.ServletStubImpl.invokeServlet(javax.servlet.ServletRequest, javax.servlet.ServletResponse, weblogic.servlet.internal.FilterChainImpl) line: 463
         weblogic.servlet.internal.ServletStubImpl.invokeServlet(javax.servlet.ServletRequest, javax.servlet.ServletResponse) line: 315
         weblogic.servlet.internal.RequestDispatcherImpl.include(javax.servlet.ServletRequest, javax.servlet.ServletResponse, boolean) line: 622
         weblogic.servlet.internal.RequestDispatcherImpl.include(javax.servlet.ServletRequest, javax.servlet.ServletResponse) line: 412
         weblogic.servlet.jsp.PageContextImpl.include(java.lang.String) line: 154
         jsp_servlet.__first_page._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) line: 199
         jsp_servlet.__first_page(weblogic.servlet.jsp.JspBase).service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) line: 33
         weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run() line: 996
         weblogic.servlet.jsp.JspStub(weblogic.servlet.internal.ServletStubImpl).invokeServlet(javax.servlet.ServletRequest, javax.servlet.ServletResponse, weblogic.servlet.internal.FilterChainImpl) line: 419
         weblogic.servlet.internal.ServletStubImpl.invokeServlet(javax.servlet.ServletRequest, javax.servlet.ServletResponse, weblogic.servlet.internal.FilterChainImpl) line: 463
         weblogic.servlet.internal.ServletStubImpl.invokeServlet(javax.servlet.ServletRequest, javax.servlet.ServletResponse) line: 315
         weblogic.servlet.internal.RequestDispatcherImpl.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse) line: 312
         com.sun.faces.context.ExternalContextImpl.dispatch(java.lang.String) line: 322
         com.sun.faces.application.ViewHandlerImpl.renderView(javax.faces.context.FacesContext, javax.faces.component.UIViewRoot) line: 147
         com.sun.faces.lifecycle.RenderResponsePhase.execute(javax.faces.context.FacesContext) line: 87
         com.sun.faces.lifecycle.LifecycleImpl.phase(javax.faces.event.PhaseId, com.sun.faces.lifecycle.Phase, javax.faces.context.FacesContext) line: 200
         com.sun.faces.lifecycle.LifecycleImpl.render(javax.faces.context.FacesContext) line: 117
         javax.faces.webapp.FacesServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) line: 198
         weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run() line: 996
         weblogic.servlet.internal.ServletStubImpl.invokeServlet(javax.servlet.ServletRequest, javax.servlet.ServletResponse, weblogic.servlet.internal.FilterChainImpl) line: 419
         weblogic.servlet.internal.ServletStubImpl.invokeServlet(javax.servlet.ServletRequest, javax.servlet.ServletResponse) line: 315
         weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run() line: 6452
         weblogic.security.acl.internal.AuthenticatedSubject.doAs(weblogic.security.subject.AbstractSubject, java.security.PrivilegedAction) line: 321
         weblogic.security.service.SecurityManager.runAs(weblogic.security.acl.internal.AuthenticatedSubject, weblogic.security.acl.internal.AuthenticatedSubject, java.security.PrivilegedAction) line: 118
         weblogic.servlet.internal.WebAppServletContext.invokeServlet(weblogic.servlet.internal.ServletRequestImpl, weblogic.servlet.internal.ServletResponseImpl) line: 3661
         weblogic.servlet.internal.ServletRequestImpl.execute(weblogic.kernel.ExecuteThread) line: 2630
         weblogic.kernel.ExecuteThread.execute(weblogic.kernel.ExecuteRequest) line: 219
         weblogic.kernel.ExecuteThread.run() line: 178
    Can someone PLZZ HELP?
    Thanx,
    Lavanya

    Lavanya,
    I think the included jsp file(left_frame.jsp) should not contain JSF HTML and Core tablib's. ie <@taglib > tags . They r already included in your other jsp. right?
    By the way, I suggest u to go to JSF Forum here at forums.java.sun.com.
    Bye

Maybe you are looking for

  • How do i set up my iphone 4 to be able to print from wireless printer?

    How do I set up my iphone 4 to print to a wireless printer (airPrinter)?

  • SOAP sender and IDOC receiver

    hi Could u please help me, how to do this interface. I am transferring the PO from legacy system(webServices Request) to SAP system when ever PO_IDOC is created in SAP I need to send PO number and Acknowledge back to the legacy system.This is synchro

  • Weblogic 10.1 web apps merge log4j log files into single log file

    Hi I have deployed multiple web applications on my weblogic (v 10.1 - JDK 1.5.0_12). I am using log4j-1.2.13.jar in a four different web applications. The location for the files are - WEB-INF\lib\log4j-1.3.13.jar and WEB-INF\classes\log4j.properties

  • Event will get trigger ?

    hi gurus we r in ecc6.0 & EP7.0 . employee will raise the travel request through ess in portal , then the workflow should start , so event should trigger , how to identify the event triggering at the end of the process. in backend i can't find the an

  • Will the camera connection kit work with the iPhone 4s and iOS 5?

    I haven't been able to find anything in the forum regarding the iphone 4S / iOS 5 and the camera connection kit; did any of the developers work with this piece of hardware when testing iOS 5, if you aren't allow to answer I understand, I'll just find