You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by apachep2 <ap...@hotmail.com> on 2003/03/12 16:35:29 UTC

[OT]RE: Is it possible to change the base tile on the fly

I have been seeing those "can I change sth on the fly" posts
recently.More specific, changing tile, changing action forward etc.

I am against this idea. Changing on-the-fly lacks the "flexibility" of
using an external xml file to configure the web app. Shall we go back to
Servlet and put "if-else" between out.printlns - you will always be able
to change on the fly?

Just my personal opinion.

-----Original Message-----
From: Raible, Matt [mailto:Matt_Raible@cable.comcast.com] 
Sent: March 12, 2003 10:26 AM
To: 'Struts Users Mailing List'
Subject: Is it possible to change the base tile on the fly

I have the following base tile definition that all my other definitions
extend:

	<definition name="baseLayout" path="/layouts/baseLayout.jsp">
		<put name="title.key"/>
		<put name="heading.key"/>
		<put name="header" value="/common/header.jsp"/>
		<put name="footer" value="/common/footer.jsp"/>
      </definition>

Is it possible to change the "path" attribute of this definition
on-the-fly
- perhaps based on a value received in an Action?  If so, how?

Thanks,

Matt


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org