You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tiles.apache.org by "Dok Tora (JIRA)" <ji...@apache.org> on 2007/11/20 17:35:33 UTC

[jira] Issue Comment Edited: (TILES-232) Exception thrown when using insertTemplate to insert the result of a struts action

    [ https://issues.apache.org/struts/browse/TILES-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42693 ] 

doktora edited comment on TILES-232 at 11/20/07 8:34 AM:
----------------------------------------------------------

Please note that to make this work, the struts2 filter mapping must be setup in web.xml like this:

  <filter-mapping>
    <filter-name>struts2</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
  </filter-mapping>

See

http://mail-archives.apache.org/mod_mbox/tiles-users/200711.mbox/%3cOFD5C2CB40.16E5B89C-ONC1257398.00534868-C1257398.00535D6B@amadeus.com%3e

Otherwise what's rendered inside the calling JSP is:
The requested resource (/s2t2/test2.action) is not available

      was (Author: doktora):
    Please note that to make this work, the struts2 filter mapping must be setup in web.xml like this:

  <filter-mapping>
    <filter-name>struts2</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
  </filter-mapping>

See

http://mail-archives.apache.org/mod_mbox/tiles-users/200711.mbox/%3cOFD5C2CB40.16E5B89C-ONC1257398.00534868-C1257398.00535D6B@amadeus.com%3e


  
> Exception thrown when using insertTemplate to insert the result of a struts action
> ----------------------------------------------------------------------------------
>
>                 Key: TILES-232
>                 URL: https://issues.apache.org/struts/browse/TILES-232
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-core
>    Affects Versions: 2.0.5
>         Environment: Tomcat 5.5.25, Struts 2.0.11, Tiles 2.0.5, Java 1.5, Mac OS X 10.4.10
>            Reporter: Dok Tora
>         Attachments: s2t2.war
>
>
> Inserting a struts action like this from a jsp:
> <tiles:insertTemplate template="/test2.action">
> </tiles:insertTemplate>
> Causes the result of /test2.action to be rendered rather than the calling JSP and the following exception is thrown:
> Nov 20, 2007 3:58:45 PM org.apache.tiles.servlet.context.ServletTilesRequestContext forward
> SEVERE: Servlet Exception while including path
> org.apache.jasper.JasperException: Stream closed
> ...
> Nov 20, 2007 3:58:45 PM org.apache.tiles.impl.BasicTilesContainer render
> SEVERE: Error rendering tile
> java.io.IOException: Error including path '/testlayout.jsp'. Stream closed
> Attached war file contains sample web-app, access via /s2t2/test.action.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.