Hello Ryan,

> Ryan LeCompte wrote:
> 
> Hello,
> 
> Is there any way to utilize the new JSTL (JSP Standard Tag Libraries) in
> the WebWork framework?

Yes, if you're willing to write a little "glue" code.  

If your Actions and Beans use the "id" attribute in the WebWork tags, you
should be able to access them directly from the JSTL Expression Language.

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 returns a reference to the current object on the ValueStack saving
it into the request.  This effectively gives the object an id of "user."  

Then you should then be able to access the object in JSTL something like:
    <c:out value="${user.email}"/>

Hope this helps,
-Bill

> Thanks.
> 
> Ryan LeCompte
> [EMAIL PROTECTED]
> http://www.ull.edu/~rml7669
>

_______________________________________________________________

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