Ok, Thanks Matt, another question.

Can I set in struts.xml a variable passed by request or session ?

example:
Action: getRequest().setAttribute("*template*", "test");

struts.xml: <result name="success">${*template*}/test.jsp</result>

I'm trying but the result is redirect to mainMenu.html

Thanks in advance.

Mauri.




On Tue, May 12, 2009 at 10:46 AM, Matt Raible <m...@raibledesigns.com>wrote:

> I don't think you can do this, but you might want to confirm with the
> SiteMesh mailing list.
>
> Matt
>
>
> On May 12, 2009, at 7:24 AM, Mauricio Ferreyra <maur...@gmail.com> wrote:
>
> Hi all,
>            I want use to a dynamic variable, such as ${template}, in my
> decorators.xml. Can I do it?
> example:
>
> <decorators defaultdir="/decorators">
>     <decorator name="default" page="*${template}/default.jsp*">
>         <pattern>/*</pattern>
>     </decorator>
> </decorators>
>
>
> Regards!
>
> Mauri.
>
>

Reply via email to