You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2004/01/14 18:12:37 UTC
DO NOT REPLY [Bug 26134] New: -
Tiles element must be possible to specify type="page"
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26134>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26134
Tiles <put> element must be possible to specify type="page"
Summary: Tiles <put> element must be possible to specify
type="page"
Product: Struts
Version: 1.1 Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Tiles framework
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: vspa@mail.ru
Hi, guys,
I think that the following construction should be possible in tiles definition
file (note new type="action" - now only "page", "definition" and "string" are
possible):
<definition name="disclaimer.def" extends="rootLayout">
<put
name="header" value="header?contentPage=disclaimer" type="action"/>
<put
name="footer" value="footer?contentPage=disclaimer" type="action"/>
<put
name="content" value="/WEB-INF/jsp/disclaimer.jsp"
type="page"/>
</definition>
(kinda like we have "action" attribute in <html:link> tag,
which is expanded by that tag into fully qualified path to the action, including ".do" of whatever
specified in config file).
Now I have to do the following (note suffix ".do" in both header and
footer, also I need to specify context):
<definition name="disclaimer.def"
extends="rootLayout">
<put name="header" value="/header.do?contentPage=disclaimer"
type="page"/>
<put name="footer" value="/footer.do?contentPage=disclaimer"
type="page"/>
<put name="content" value="/WEB-INF/jsp/disclaimer.jsp"
type="page"/>
</definition>
I frequently need to "put" actions, not just jsp, think
others need too.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org