SivaKumarl wrote:
> Hi lars,
>   Thank you for your reply,I tried  what you have done but no output.The
> following are the jsp pages:
>
> layout.jspx
> <?xml version="1.0" encoding="utf-8"?> 
>
> <stripes:layout-definition
>       xmlns:jsp="http://java.sun.com/JSP/Page";
>       xmlns:c="http://java.sun.com/jstl/core";
>       xmlns:fmt="http://java.sun.com/jstl/fmt";
>       xmlns:stripes="http://stripes.sourceforge.net/stripes.tld";
>       xmlns:pbx-stripes="http://paybox.net/pbx-stripes.tld";
>       xmlns:display="http://displaytag.sf.net"; >
>
>   

Hi Siva,

The problem is that you're missing the "JSP part" in your page. Try the
following for* your layout file* (I removed some namespaces and the
resource file, feel free to put them back):

<?xml version="1.0" encoding="utf-8"?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"; version="2.1"
xmlns:c="http://java.sun.com/jsp/jstl/core";
    xmlns:stripes="http://stripes.sourceforge.net/stripes.tld";>

    <jsp:output 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"
language="java" />

    <stripes:layout-definition>
        <html xmlns="http://www.w3.org/1999/xhtml";>
            <head>
            <title>${pageTitle}</title>
            </head>
            <body dir="ltr">
                <div id="content"><stripes:layout-component
name="menuBar" /></div>
            </body>
        </html>
    </stripes:layout-definition>

</jsp:root>

*The actual file could look like this:*
<?xml version="1.0" encoding="utf-8"?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"; version="2.1"
xmlns:c="http://java.sun.com/jsp/jstl/core";
    xmlns:stripes="http://stripes.sourceforge.net/stripes.tld";>

    <stripes:layout-render name="/layout.jsp">
        <stripes:layout-component name="menuBar">
            Some text that should be displayed on the page
        </stripes:layout-component>
    </stripes:layout-render>
</jsp:root>


cheers

lars
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to