You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tiles.apache.org by "Antonio Petrelli (JIRA)" <ji...@apache.org> on 2008/10/17 10:15:36 UTC
[jira] Created: (TILES-320) Throw an exception if an
included/forwarded resource is not found
Throw an exception if an included/forwarded resource is not found
-----------------------------------------------------------------
Key: TILES-320
URL: https://issues.apache.org/struts/browse/TILES-320
Project: Tiles
Issue Type: Improvement
Affects Versions: 2.0.6
Reporter: Antonio Petrelli
Fix For: 2.1.x
Currently if an attribute value, specifying a template, is not found, nothing is thrown, because the implementation of:
PageContext.include
and
RequestDispatcher.include
does not throw an exception.
Tiles should, by default, throw an exception in these cases (except in case the "ignore" flag is true).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (TILES-320) Throw an exception if an
included/forwarded resource is not found
Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/TILES-320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antonio Petrelli closed TILES-320.
----------------------------------
> Throw an exception if an included/forwarded resource is not found
> -----------------------------------------------------------------
>
> Key: TILES-320
> URL: https://issues.apache.org/struts/browse/TILES-320
> Project: Tiles
> Issue Type: Improvement
> Affects Versions: 2.0.6
> Reporter: Antonio Petrelli
> Assignee: Antonio Petrelli
>
> Currently if an attribute value, specifying a template, is not found, nothing is thrown, because the implementation of:
> PageContext.include
> and
> RequestDispatcher.include
> does not throw an exception.
> Tiles should, by default, throw an exception in these cases (except in case the "ignore" flag is true).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TILES-320) Throw an exception if an
included/forwarded resource is not found
Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/TILES-320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antonio Petrelli updated TILES-320:
-----------------------------------
Assignee: Antonio Petrelli
> Throw an exception if an included/forwarded resource is not found
> -----------------------------------------------------------------
>
> Key: TILES-320
> URL: https://issues.apache.org/struts/browse/TILES-320
> Project: Tiles
> Issue Type: Improvement
> Affects Versions: 2.0.6
> Reporter: Antonio Petrelli
> Assignee: Antonio Petrelli
> Fix For: 2.1.x
>
>
> Currently if an attribute value, specifying a template, is not found, nothing is thrown, because the implementation of:
> PageContext.include
> and
> RequestDispatcher.include
> does not throw an exception.
> Tiles should, by default, throw an exception in these cases (except in case the "ignore" flag is true).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (TILES-320) Throw an exception if an
included/forwarded resource is not found
Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/TILES-320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antonio Petrelli resolved TILES-320.
------------------------------------
Resolution: Won't Fix
Fix Version/s: (was: 2.1.x)
Using Tiles to fix a "problem" in servlet and JSP specification does not seem a good idea, so I close this bug as "won't fix".
However a filter could be used to intercept "include" and "forward" requests (I am more concerned about "include") that throws an exception if:
a) an HTTP 404 error code is set;
b) 0 bytes are written in the writer.
To map the filter to intercept "include" add this to web.xml:
<filter-mapping>
<filter-name>my_filter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
> Throw an exception if an included/forwarded resource is not found
> -----------------------------------------------------------------
>
> Key: TILES-320
> URL: https://issues.apache.org/struts/browse/TILES-320
> Project: Tiles
> Issue Type: Improvement
> Affects Versions: 2.0.6
> Reporter: Antonio Petrelli
> Assignee: Antonio Petrelli
>
> Currently if an attribute value, specifying a template, is not found, nothing is thrown, because the implementation of:
> PageContext.include
> and
> RequestDispatcher.include
> does not throw an exception.
> Tiles should, by default, throw an exception in these cases (except in case the "ignore" flag is true).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.