[ 
https://issues.apache.org/struts/browse/TILES-332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

JFArnaud updated TILES-332:
---------------------------

    Attachment: tilesbug.zip

Hello, i think i have the same problem

I am using tiles 2.1, spring 2.5.6, tomcat 6.0.9
See attached tilesbug.zip file (jsp source, template, definitions)

In my app, if i am not logged when i request a page, server redirect me to 
login.jsp
In this page, after authentication, i want to load the page requested 
previously 
(contained in targetURL by calling 
AbstractProcessingFilter.obtainFullSavedRequestUrl(request))
First time i reach a random page, the value of targetURL is correct, and 
redirection is done.
Then after logout, i retry to access an other page, and targetURL is invalid 
and the value is the first URL!
Every time, "foobar" is printed but the attribute "scripts" is not updated with 
the correct URL

I tested with tiles 2.0.6 and it works !

> putAttribute does not work correctly
> ------------------------------------
>
>                 Key: TILES-332
>                 URL: https://issues.apache.org/struts/browse/TILES-332
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-jsp (jsp support)
>    Affects Versions: 2.1.1
>         Environment: Tomcat 6.0.18, Struts 2.0.11.1, Struts2-Tiles-Plugin, 
> Spring 2.5.6,  Spring-Security
>            Reporter: Udo Walker
>         Attachments: tilesbug.zip
>
>
> in Tiles version 2.0.5 I could do the following:
> <tiles:putAttribute name="content" type="string">
>     <security:authorize ifNotGranted="ROLE_USER">
>   show anonymous things....
>    </security:authorize>
>    <security:authorize ifAnyGranted="ROLE_USER">
>       show welcome things for authorized user....
>    </security:authorize>
> </tiles:putAttribute>
> The tag "security:authorize" is from the Spring security taglib.
> In the tiles version 2.0.5 the body of the putAttribute-Tag was interpreted 
> the correct way, i.e. the first block was shown when you were not logged in 
> and the 2nd block was shown, when you were logged in.
> Now in version 2.1.1 nothing is shown at all.
> But if I remove the type="string" attribute of the putAttribute-Tag then I 
> see at least the content of the 1st block. But if I am logged in then the 2nd 
> block is never shown. It looks like the custom tags are not interpreted any 
> more in the new Tiles version.

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

Reply via email to