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>

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.

/Rickard

-- 
Rickard Öberg


_______________________________________________________________

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

Reply via email to