tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Stockhausen <prof.dr.moe...@googlemail.com>
Subject Tiles call via Browser (http://localhost:8080/MyProject/MyTilesDefinition) ?!
Date Tue, 14 Sep 2010 08:08:43 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message