You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Antonio Petrelli (JIRA)" <ji...@apache.org> on 2006/10/03 13:22:15 UTC

[jira] Created: (SB-50) Check if controller attributes of tag can be replaced

Check if controller attributes of <tiles:insert> tag can be replaced
--------------------------------------------------------------------

                 Key: SB-50
                 URL: http://issues.apache.org/struts/browse/SB-50
             Project: Sandbox
          Issue Type: Task
          Components: Tiles
    Affects Versions: 2.0
         Environment: N/A
            Reporter: Antonio Petrelli


During fixing SB-21, the attributes "controllerClass" and "controllerUrl" of InsertTag have been removed.
To check if they can be replaced in any way, there is the need to write some tests.
I think that a possible replacement is to use the "template" attribute with the needed URL, e.g. with a servlet mapping that forwards to a JSP layout page.
Anyway I don't know how to replace controllerClass attribute, though I don't think it is a good choice to specify a class name as an attribute.

Relevant mailing list thread:
http://www.mail-archive.com/dev%40struts.apache.org/msg24829.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SB-50) Check if controller attributes of tag can be replaced

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/struts/browse/SB-50?page=comments#action_38325 ] 
            
Antonio Petrelli commented on SB-50:
------------------------------------

I added a test link to the test webapp to show how to use a servlet mapping as a layout page, I think it could be a candidate to replace controllerUrl (and possibly controllerClass).

> Check if controller attributes of <tiles:insert> tag can be replaced
> --------------------------------------------------------------------
>
>                 Key: SB-50
>                 URL: http://issues.apache.org/struts/browse/SB-50
>             Project: Sandbox
>          Issue Type: Task
>          Components: Tiles
>    Affects Versions: 2.0
>         Environment: N/A
>            Reporter: Antonio Petrelli
>
> During fixing SB-21, the attributes "controllerClass" and "controllerUrl" of InsertTag have been removed.
> To check if they can be replaced in any way, there is the need to write some tests.
> I think that a possible replacement is to use the "template" attribute with the needed URL, e.g. with a servlet mapping that forwards to a JSP layout page.
> Anyway I don't know how to replace controllerClass attribute, though I don't think it is a good choice to specify a class name as an attribute.
> Relevant mailing list thread:
> http://www.mail-archive.com/dev%40struts.apache.org/msg24829.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (SB-50) Check if controller attributes of tag can be replaced

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/SB-50?page=all ]

Antonio Petrelli resolved SB-50.
--------------------------------

    Fix Version/s: 2.0
       Resolution: Won't Fix

During several discussion in the dev list, it has been decided that "controllers" are useful (though maybe under a different name).

Relevant threads:
http://www.mail-archive.com/dev%40struts.apache.org/msg24862.html
http://www.mail-archive.com/dev%40struts.apache.org/msg24890.html

> Check if controller attributes of <tiles:insert> tag can be replaced
> --------------------------------------------------------------------
>
>                 Key: SB-50
>                 URL: http://issues.apache.org/struts/browse/SB-50
>             Project: Sandbox
>          Issue Type: Task
>          Components: Tiles
>    Affects Versions: 2.0
>         Environment: N/A
>            Reporter: Antonio Petrelli
>             Fix For: 2.0
>
>
> During fixing SB-21, the attributes "controllerClass" and "controllerUrl" of InsertTag have been removed.
> To check if they can be replaced in any way, there is the need to write some tests.
> I think that a possible replacement is to use the "template" attribute with the needed URL, e.g. with a servlet mapping that forwards to a JSP layout page.
> Anyway I don't know how to replace controllerClass attribute, though I don't think it is a good choice to specify a class name as an attribute.
> Relevant mailing list thread:
> http://www.mail-archive.com/dev%40struts.apache.org/msg24829.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira