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" >
<jsp:directive.page contentType="text/html;charset=utf-8"
language="java"
/>
<fmt:setBundle basename="StripesResources.properties"/>
<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>
Lars Neumann wrote:
>
> SivaKumarl <[EMAIL PROTECTED]> writes:
>> Hi friends,
>> I am using jspx instead of jsp pages ,in jspx
>> <stripes:layout-definition> and tags related to layout are not
>> working.Please,inform me how to use jspx using Stripes
>>
>> Cheers
>> ------
>> Siva
>
>
> Hi Siva,
>
> I'm using jspx and stripes for a while now and never had any problems.
> Could you
> post an example of how you're using the layout?
>
> Here is an example how it works for me, as Scott already mentioned you
> have to
> define the taglibs as XML namespaces:
>
> <?xml version="1.0" encoding="utf-8"?>
> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
> 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-render name="/layout.jsp">
> <stripes:layout-component name="page-content">
> Some content
> </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
>
>
------------------------
The page rendered to layout.jspx page is
menu.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/jstl/core"
xmlns:fmt="http://java.sun.com/jstl/fmt"
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" />
<fmt:setBundle basename="StripesResources"/>
<stripes:layout-render name="/layout/default.jsp" page="1" >
<stripes:layout-component name="menuBar">
<div>
<jsp:text><h1>MY WOM </h1></jsp:text>
</div>
</stripes:layout-component>
</stripes:layout-render>
</jsp:root>
The menu.jspx is rendered to layout.jspx but the page is not rendered.
--
View this message in context:
http://www.nabble.com/stripes-layout-using-jspx-tp17150061p17163008.html
Sent from the stripes-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
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