Hello, Rickard wrote: > > Bill Burton wrote: > > Other objects are only available on WW's ValueStack which JSTL can't > > directly access. So to make them available you have to copy the object of > > interest off the VS and save a reference to it in the request, etc. Don't > > know of any way to do this with WW tags, but the following scriptlet > > should work: > > <% request.setAttribute("user", > > ValueStack.getStack(request).findValue(".")); %> > > which equals this with WW tags: > <webwork:property value="." id="user"> > ...use JSTL here... > </webwork:property>
Cool! > It should be trivial to write a servlet filter that overloads > request.getAttribute() and delegates to the stack before doing the > normal stuff. The semantics of that may get a little iffy, but at least > it would provide super-trivial access to the WW valuestack. It's too bad JSTL doesn't provide a way to do this internally where you could implement your own version of PageContent.findAttribute similar to what you did for the Velocity implementation. > /Rickard > > -- > Rickard Öberg -Bill _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ Webwork-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webwork-user