You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tiles.apache.org by Michael Stockhausen <pr...@googlemail.com> on 2010/09/14 10:08:43 UTC

Tiles call via Browser (http://localhost:8080/MyProject/MyTilesDefinition) ?!

Hallo Folks,

my tiles definition (tiles-defs.xml) looks like this:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
<tiles-definitions>
    <definition name="default" template="/jsp/template.jsp">
        <put-attribute name="header" value="/jsp/header.jsp" />
        <put-attribute name="content" value="/jsp/content.jsp" />
    </definition>
    <definition name="show" extends="default">
        <put-attribute name="content" value="/jsp/show.jsp" />
    </definition>
</tiles-definitions>


I'm using this tag (<tiles:insertDefinition name="default" />) inside of
index.jsp.
The call of the 'default' definition is working!

How can I call the 'default' definition via browser?
http://localhost:8080/JspAndTiles/default <-- this example doesn't work!

Thanks,
Michael

Re: Tiles call via Browser (http://localhost:8080/MyProject/MyTilesDefinition) ?!

Posted by Michael Stockhausen <pr...@googlemail.com>.
Thanks Antonio!  :o)


On Tue, Sep 14, 2010 at 11:06 AM, Antonio Petrelli <
antonio.petrelli@gmail.com> wrote:

> 2010/9/14 Michael Stockhausen <pr...@googlemail.com>:
> > How can I call the 'default' definition via browser?
> > http://localhost:8080/JspAndTiles/default <-- this example doesn't work!
>
> See TilesDispatchServlet:
> http://tiles.apache.org/framework/tutorial/advanced/utils.html
>
> HTH
> Antonio
>

Re: Tiles call via Browser (http://localhost:8080/MyProject/MyTilesDefinition) ?!

Posted by Antonio Petrelli <an...@gmail.com>.
2010/9/14 Michael Stockhausen <pr...@googlemail.com>:
> How can I call the 'default' definition via browser?
> http://localhost:8080/JspAndTiles/default <-- this example doesn't work!

See TilesDispatchServlet:
http://tiles.apache.org/framework/tutorial/advanced/utils.html

HTH
Antonio