struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From setecastronomy <>
Subject [S2] SiteMesh: let the user choose to see a page undecorated
Date Tue, 04 Dec 2007 16:16:28 GMT

I'm using Struts 2 with siteMesh.
I developed a simple application  which can be summerized in a page form fro
making different kinds of query and a small number of result pages.
I want to give the user the possibility, for some result pages, to choose to
see them undecorated.
It should work like the print firnedly verison of a web page, which cuts out
some parts of the page.
I tryed the following:
- the action which is invoked checks if the user wants a decorated page and
give a different result such as /myPage.jsp or /nodecorate/myPage.jsp

In fact tin my siteMesh installation requests to /nodecorate/*  are exluded
from being decorated.

This solution cannot work because the request on which siteMesh decides what
to do is that directed to the action, which is the same in both cases and it
is not inside the /nodecorate folder.

So I'm wondering which is the cleanest way to obtain what I want.

Thank you
View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message