How to disable any decorators from Java?
Peter <[email protected]> Mon, 29 Aug 2005 17:05:10 CDT
| Newsgroups | gmane.comp.web.sitemesh.general,gmane.comp.lang.pnuts.user |
|---|---|
| Message-ID | <3512260.1125353186563.JavaMail.os-j2ee@opensymphony01.contegix.com> |
Scott, The problem is this: 1) the jsp goes to MyAction.red, which is a Struts action, which should apply the decorator "red" in most of the cases 2) in MyAction.java (a Struts Action), sometimes (depending on the logic), I want to tell SiteMesh not to apply *any* decorators, so just give me the forwarded jsp as is 3) so most of the time I want "red" to be applied, but in some rare cases I don't want anything to be applied. I need to tell this to SiteMesh from Java. I don't think I can put an empty String into request under the key com.opensymphony.module.sitemesh.RequestConstants.DECORATOR. I believe I tried that and it gave me an error like "Cannot find decorator '' in any......." What do you think I can do? --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=6072&messageID=14098#14098 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]