You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by setecastronomy <fi...@virgilio.it> on 2007/12/04 17:16:28 UTC

[S2] SiteMesh: let the user choose to see a page undecorated

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
accordingly.

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
Filippo
-- 
View this message in context: http://www.nabble.com/-S2--SiteMesh%3A-let-the-user-choose-to-see-a-page-undecorated-tf4943974.html#a14153476
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: [struts] [S2] SiteMesh: let the user choose to see a page undecorated

Posted by Dale Newfield <Da...@Newfield.org>.
setecastronomy wrote:
> I want to give the user the possibility, for some result pages, to choose to
> see them undecorated.

Easiest solution is to select a different decorator based on a parameter

com.opensymphony.module.sitemesh.mapper.ParameterDecoratorMapper

-Dale

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