Yes, a filter applied _after_ SiteMesh could do this cleanup for us. I think
we should add this to WebWork. Francisco, can you open a JIRA issue about
this?

-Pat

----- Original Message -----
From: "Jason Carreira" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 21, 2003 9:32 PM
Subject: RE: [OS-webwork] webwork2 tags not working in sitemeshed pages


You need to make sure this ActionContext gets cleaned up when you're
done with it, or it will remain associated with the thread for the next
request.

> -----Original Message-----
> From: Francisco Hernandez [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 21, 2003 11:33 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [OS-webwork] webwork2 tags not working in
> sitemeshed pages
>
>
> ok i made a hack so the ww2 tags work in my sitemesh
> decorators.. can soemone tell me if I went about this the
> correct way to go about this or not?
>
> in my servletdispatcher i put a new line:
>
> request.setAttribute("MyActionContext",ActionContext.getContext());
> so now its:
>             ActionProxy proxy =
> ActionProxyFactory.getFactory().createActionProxy(actionPath,
> actionName, extraContext);
>             request.setAttribute("webwork.valueStack",
> proxy.getValueStack());
>
> request.setAttribute("MyActionContext",ActionContext.getContext());
>             proxy.execute();
>
> then in my decorator i put:
> <%ActionContext.setContext((ActionContext)request.getAttribute
> ("MyActionCont
> ext"));%>
>
> now my ww2 tags work fine..
>
> i dont know much about these special threadlocals and how
> they might affect things in other places but this seems to be
> working for me now
>
> any input?
>
>
>
>
> ----- Original Message -----
> From: "Francisco Hernandez" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 21, 2003 2:27 AM
> Subject: [OS-webwork] webwork2 tags not working in sitemeshed pages
>
>
> > 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(Prop
> ertyTag.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



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

Reply via email to