The Servlet-Filter combo is what I was imagining.

----- Original Message -----
From: "Mike Cannon-Brookes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 22, 2003 3:25 PM
Subject: Re: [OS-webwork] webwork2 tags not working in sitemeshed pages


> The problem is that (and I've tried this) the WW servlet cleans up the
> context and the value stack at the end of it's execution.
>
> The only way I can see to do this reliably (and I'm on a bus at the
moment,
> so thinking clearly is not the easiest) is to write a WWFilter to replace
> the WWServlet? However I'm not sure how this would interoperate with the
> SiteMesh filter.
>
> The alternative is to use a servlet-filter combination actually.
>
> 1) filter runs and sets a request attribute like 'I'll clean up the
context'
> 2) before cleaning context, servlet checks for this attribute and doesn't
> clean up if it is set
> 3) filter runs after the request and cleans up the context
>
> I think that would work and be backwards compatible. Anyone without the
> filter deployed would just see standard behaviour?
>
> Mike
>
> On 23/7/03 7:31 AM, "Francisco Hernandez" ([EMAIL PROTECTED]) penned
the
> words:
>
> > how about the method Cameron Braid mentioned with a jsp tag in the
> > decorator, having the start of the tag set the context and then the end
of
> > the tag cleaning it up?
> >
> > ----- Original Message -----
> > From: "Jason Carreira" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, July 22, 2003 1:19 PM
> > Subject: RE: [OS-webwork] webwork2 tags not working in sitemeshed pages
> >
> >
> > I agree... I think we need to think this through more...
> >
> >> -----Original Message-----
> >> From: James Cook [mailto:[EMAIL PROTECTED]
> >> Sent: Tuesday, July 22, 2003 4:15 PM
> >> To: [EMAIL PROTECTED]
> >> Subject: RE: [OS-webwork] webwork2 tags not working in
> >> sitemeshed pages
> >>
> >>
> >> If the filter cleans up, shouldn't it also be the place where
> >> the action context is added to the request/session? Perhaps
> >> this is not possible given the particular wrapping needs, but
> >> it just seems slightly kludgey to add the context in the
> >> dispatcher servlet and remove it in a filter.
> >>
> >>> -----Original Message-----
> >>> From: [EMAIL PROTECTED]
> >>> [mailto:[EMAIL PROTECTED]
> >> Behalf Of
> >>> Pat Lightbody
> >>>
> >>> 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?
> >>>
> >>
> >>
> >>
> >> -------------------------------------------------------
> >> 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
>


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