At 15.10 15/10/2003, Anders Engström wrote:
Hi.

I'm trying to use displaytag [1] with WW1.3, and I've got it working but
I had to hack an ugly work-around in the JSP's:

<%
   ValueStack vs = (ValueStack)request.getAttribute("webwork.result");
   Object list = vs.findValue("entries");
   if(list != null) pageContext.setAttribute("list", list);
%>
<dt:table name="pageScope.list">
   <!-- .... -->
</dt:table>

It would be really nice to retrieve objects from the value-stack and put
them in a given context using webwork:

<ww:export value="entries" to_name="list" scope="page">
   <dt:table name="pageScope.list">
   </dt:table>
</ww:export>

Is there an easier way to interact with DisplayTag (or other
page/request/session/application-oriented tools) than the above?

Quoting from: http://wiki.opensymphony.com/space/The+Three+Uses+Of+The+Property+Tag

<webwork:property id="foo" value="bar" />

will grab the value "bar" from the value stack and put it into the page context as "foo". It will be added both to the page scope and to the request scope.

I dont' know about putting something in the session or application scopes via WebWork tags, though I'd like to be corrected.

Ing. Sebastiano Pilla, CTO
SDG Engineering s.r.l.
Via della Chiesa Campocroce 4
31021 Campocroce di Mogliano Veneto (TV)
Tel +39-041-5947721
Fax +39-041-5947722




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to