At 5:27 PM +0100 12/1/05, <[EMAIL PROTECTED]> wrote:
Joe Germuska wrote:
I would think that if you were using the TilesServlet mapped to handle
requests for "*.tiles" then
<forward name="success" path="name.of.the.tiles.definition" />
would just become
<forward name="success" path="/name/of/the/tiles/definition.tiles" />
or something similar depending on how the TilesServlet maps paths to
definitions.
I haven't tried this, but it seems to make sense.
Yes it makes sense, and it probably will be useful. But remember that the
use of a Servlet exposes these URLs to the user, while
TilesRequestProcessor hides them and, if you want to expose them, you have
to create (for instance) a JSP page with the correct <tiles:insert> tag.
As you can see, a real different behaviour...
If the Tiles Servlet mapped definitions under /WEB-INF, then you
would have the same protection people currently have when they put
JSPs there. The servlet can invoke them with RequestDispatcher, but
the servlet container will not honor external requests for them.
I haven't looked at how the TilesServlet deals with looking up tiles
definitions from request paths, but I can imagine a few ways to allow
you to configure this if you wanted it. Certainly there should be
flexibility and user choice in how to map from request paths to tiles
definitions.
Joe
--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction" -The Ex
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]