One way ( bit of a hack ) that I can think of it is to
* store the action context (or something like that) in the request (or it
may even need to be session) scope when the ServletDispatcher is finished
* provide a jsp tag to create a dummy action context within the decorator.
So in your decorator file
<ww:getActionContext>
<html>
<head>
<decorator:title/>
</head>
<body>
...
<decorator:body/>
...
</body>
</html>
</ww:dummyContext>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Mike Cannon-Brookes
> Sent: Monday, 21 July 2003 11:36 PM
> To: [EMAIL PROTECTED]; opensymphony-sitemesh
> Subject: Re: [OS-webwork] webwork2 tags not working in
> sitemeshed pages
>
>
> WebWork tags currently won't work in a SiteMesh decorator, as
> they're actually in different requests. It's a little tricky
> to get this to work, and WW's architecture doesn't currently
> allow for it (although it would be _really_ cool if it did).
>
> Using them in the normal SiteMesh decorated page is not a
> problem of course, it's just the decorator that's problematic.
>
> Mike
>
> On 21/7/03 7:27 PM, "Francisco Hernandez"
> ([EMAIL PROTECTED]) penned the
> words:
>
> > I dont know if this is a webwork issue or sitemesh issue but I cant
> > use webwork tags in sitemesh
> >
> > in decorators.xml:
> > <decorator name="main" page="main.jsp">
> > <pattern>*</pattern>
> > </decorator>
> >
> > in this main.jsp page is where I cant use ww2 tags at all.. calling
> > <ww:property/> throws an exception
> >
> > java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> > at java.util.ArrayList.RangeCheck(ArrayList.java:508)
> > at java.util.ArrayList.get(ArrayList.java:320)
> > at
> com.opensymphony.xwork.util.CompoundRoot.peek(CompoundRoot.java:34)
> > at
> >
> com.opensymphony.webwork.views.jsp.PropertyTag.doStartTag(PropertyTag.
> > java:4
> > 6)
> >
> > anyone have any ideas as to what I could do to be able to
> use ww2 tags
> > in sitemeshed pages?
> >
> > PS: ww2 tags work fine when I disable sitemesh and they
> work fine in
> > the pages I use as results of my actions
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: VM Ware
> > With VMware you can run multiple operating systems on a single
> > machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual
> > machines at the same time. Free trial click here:
> > http://www.vmware.com/wl/offer/345/0
> > _______________________________________________
> > Opensymphony-webwork mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: VM Ware
> With VMware you can run multiple operating systems on a
> single machine. WITHOUT REBOOTING! Mix Linux / Windows /
> Novell virtual machines at the same time. Free trial click
> here: http://www.vmware.com/wl/offer/345/0
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork