Hi,
I have a very simple solution:
* Create a struts action that switch to the appropriate layout (a
jsp), according to the user settings:
action path=/switchLayout
type=...
forward name=layout1 path=/layouts/layout1.jsp/
forward
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
It is possible to change a definition attribute like the path on the
fly, but this will not change all the child definitions has you expect.
This is because in the actual implementation all definitions have
their own copy of the attributes. There is no lookup to the parent value.
Cedric
The reason I want to do this is to have two totally different skins based on
a user's settings. How can I change a baseLayout and all children on the
fly? Is it possible - can I just point to a specific tiles-config.xml after
they login?
I realize this is possible using stylesheets and some
4 matches
Mail list logo