jsf – struts tiles error in inserting a file

  1. MyEclipse Archived
  2.  > 
  3. Examples On-Demand
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #287891 Reply


    hi dear all

    I have downloaded a recommended program of jsf-struts project from internet.

    I have an error to insert a navigation.jsp inside a template.

    [ServletException in:/common/navigation.jsp] javax.servlet.jsp.JspException: java.lang.IllegalStateException’

    my simple code

    myTiles.xml file

    <definition name=”layout.example” path=”/template1.jsp” >
    <put name=”body” value=”/navigation.jsp” />


    <h:outputText value=”This is page1.jsp.” />
    <h:panelGrid columns=”1″ >
    <h:commandLink action=”target”>
    <h:outputText value=”Page1″ />

    Note : if I remove the f:view I get no error but the link does not respond.

    when I use a full url on the browser to access the navigation.faces, it is fine but only the error in the insert.

    if I remove the </h:commandLink> the program is fine but to use the </h:commandLink>
    then I need f:view then the error occurs.

    so many thnaks

    yours and cheers


    #287926 Reply

    Loyal Water

    I have downloaded a recommended program of jsf-struts project from internet.

    Which example are you referring to?

    #287958 Reply


    thanks a lot

    I found the answer thait is todo with <f:view> should be removed as the caller jsp has it already in it



    #288217 Reply


    hi all

    jsf – struts tiles error of faces-config not responding to a return from a bean.

    I have the problem now in jsf – struts tiles in myeclipse 6 as the bean returns a string say loginSuccess to the faces-config.xm that should forard to a jsp as a naviagation-case.

    the forward to jsp is not done and no error shown even when I put any jsp file or even false name

    this jsf program works perfect without the use of tiles. the strange is no error is thrown which means myeclispe does not provide an exception to such a case.

    so if anyone has a program link or is ready to look at my simpleast program which allows a link in jsp to go a bean to return a succes to a faces-config.

    as I said only when tiles is used otherwise is fine.

    so many thanks

    #306849 Reply


    Hello, I have the same problem of the Command link, If your problem is resolved please help me out.
    I just want to navigate on another JSP after clicking on that command link

    face-config file is:
    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE faces-config PUBLIC “-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN” “http://java.sun.com/dtd/web-facesconfig_1_1.dtd”&gt;






    header.jsp from where i want to navigate:
    <%@ taglib uri=”http://struts.apache.org/tags-html&#8221; prefix=”html” %>

    <%@ taglib uri=”http://java.sun.com/jsf/core&#8221; prefix=”f” %>
    <%@ taglib uri=”http://java.sun.com/jsf/html&#8221; prefix=”h” %>

    <h:commandLink id=”link” action=”news”>

    tiles.xml is:
    <!DOCTYPE tiles-definitions PUBLIC
    “-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN”

    <definition name=”book” path=”/layout/headerMenuContentLayout.jsp”>
    <put name=”header” value=”/pages/bookHeader1.jsp”/>
    <put name=”menu” value=”/pages/bookMenu.jsp”/>
    <put name=”content” value=”/”/>

    <definition name=”testbook” extends=”book”>
    <put name=”content” type=”template” value=”/pages/MyJsp1.jsp”/>

    <definition name=”caseStudy” extends=”book”>
    <put name=”content” type=”template” value=”/pages/caseStudyBodyContent.jsp”/>

    <definition name=”news” extends=”book”>
    <put name=”content” type=”template” value=”/pages/newsBodyContent.jsp”/>


Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: jsf – struts tiles error in inserting a file

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